mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-31 23:21:42 +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,
|
||||
|
||||
"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( $ ){
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user