From f799a1fe86766cea621f655d7b17d1081fcafa0a Mon Sep 17 00:00:00 2001 From: Gaspar Rey Date: Wed, 2 Sep 2015 00:24:59 +0100 Subject: [PATCH] Add 'define' as a global in JSHint --- .jshintrc | 3 ++- src/openseadragon.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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) {