diff --git a/.jshintrc b/.jshintrc index e40e7d81..626284b2 100644 --- a/.jshintrc +++ b/.jshintrc @@ -9,6 +9,7 @@ "unused": false, "globals": { - "OpenSeadragon": true + "OpenSeadragon": true, + "define": false } } diff --git a/src/openseadragon.js b/src/openseadragon.js index 6df419a4..4e18d4cd 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -682,7 +682,9 @@ * @returns {OpenSeadragon.Viewer} */ window.OpenSeadragon = window.OpenSeadragon || function( options ){ + return new OpenSeadragon.Viewer( options ); + }; if (typeof define === 'function' && define.amd) {