mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-05 04:14:54 +00:00
Make sure fabric is always global
Later code assumes fabric is a global symbol and this fails when library is function wrapped as in Meteor.js packaging system.
This commit is contained in:
parent
219980d046
commit
d2b435da16
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ if (typeof exports !== 'undefined') {
|
|||
if (typeof document !== 'undefined' && typeof window !== 'undefined') {
|
||||
fabric.document = document;
|
||||
fabric.window = window;
|
||||
// ensure globality even if entire library were function wrapped
|
||||
// ensure globality even if entire library were function wrapped (as in Meteor.js packaging system)
|
||||
window.fabric = fabric;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue