Merge pull request #94 from niksy/dont-expose-global
Don’t expose polyfill to global when in CJS/AMD
This commit is contained in:
Коммит
eac4baa34f
|
@ -493,7 +493,6 @@
|
|||
dialog.close(returnValue);
|
||||
}, true);
|
||||
|
||||
window['dialogPolyfill'] = dialogPolyfill;
|
||||
dialogPolyfill['forceRegisterDialog'] = dialogPolyfill.forceRegisterDialog;
|
||||
dialogPolyfill['registerDialog'] = dialogPolyfill.registerDialog;
|
||||
|
||||
|
@ -503,5 +502,8 @@
|
|||
} else if (typeof define === 'function' && 'amd' in define) {
|
||||
// AMD support
|
||||
define(function() { return dialogPolyfill; });
|
||||
} else {
|
||||
// all others
|
||||
window['dialogPolyfill'] = dialogPolyfill;
|
||||
}
|
||||
})();
|
||||
|
|
Загрузка…
Ссылка в новой задаче