Merge pull request #719 from Emigre/umd

registers an AMD module if possible
This commit is contained in:
Ian Gilman 2015-09-14 13:54:27 -07:00
commit b07e4b200a
2 changed files with 8 additions and 1 deletions

View File

@ -9,6 +9,7 @@
"unused": false,
"globals": {
"OpenSeadragon": true
"OpenSeadragon": true,
"define": false
}
}

View File

@ -687,6 +687,12 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
};
if (typeof define === 'function' && define.amd) {
define(function () {
return (window.OpenSeadragon);
});
}
(function( $ ){