Avoid creation of exports global var as this messes up QUnit (and probably something else)

This commit is contained in:
kangax 2013-09-14 20:40:40 +02:00
parent 408a8b9de6
commit b077905781
3 changed files with 8 additions and 0 deletions

BIN
dist/all.min.js.gz vendored

Binary file not shown.

4
dist/all.require.js vendored
View file

@ -18502,6 +18502,10 @@ fabric.util.object.extend(fabric.Text.prototype, {
window.fabric = fabric;
// make sure exports.fabric is always defined when used as 'global' later scopes
var exports = exports || {};
exports.fabric = fabric;
if (typeof define === "function" && define.amd) {
define("fabric", [], function() { return fabric });
}

View file

@ -2,6 +2,10 @@
window.fabric = fabric;
// make sure exports.fabric is always defined when used as 'global' later scopes
var exports = exports || {};
exports.fabric = fabric;
if (typeof define === "function" && define.amd) {
define("fabric", [], function() { return fabric });
}