mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-20 11:21:51 +00:00
Avoid creation of exports global var as this messes up QUnit (and probably something else)
This commit is contained in:
parent
408a8b9de6
commit
b077905781
3 changed files with 8 additions and 0 deletions
BIN
dist/all.min.js.gz
vendored
BIN
dist/all.min.js.gz
vendored
Binary file not shown.
4
dist/all.require.js
vendored
4
dist/all.require.js
vendored
|
|
@ -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 });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue