mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-08 02:49:22 +03:00
Merge pull request #719 from Emigre/umd
registers an AMD module if possible
This commit is contained in:
commit
b07e4b200a
@ -9,6 +9,7 @@
|
|||||||
"unused": false,
|
"unused": false,
|
||||||
|
|
||||||
"globals": {
|
"globals": {
|
||||||
"OpenSeadragon": true
|
"OpenSeadragon": true,
|
||||||
|
"define": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -687,6 +687,12 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
define(function () {
|
||||||
|
return (window.OpenSeadragon);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
(function( $ ){
|
(function( $ ){
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user