mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
Define as an AMD module if available
This commit is contained in:
parent
ba80561e76
commit
00459189b1
@ -682,11 +682,15 @@
|
||||
* @returns {OpenSeadragon.Viewer}
|
||||
*/
|
||||
window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
||||
|
||||
return new OpenSeadragon.Viewer( options );
|
||||
|
||||
};
|
||||
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(function () {
|
||||
return (window.OpenSeadragon);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
(function( $ ){
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user