Add 'define' as a global in JSHint

This commit is contained in:
Gaspar Rey 2015-09-02 00:24:59 +01:00
parent 00459189b1
commit f799a1fe86
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -682,7 +682,9 @@
* @returns {OpenSeadragon.Viewer}
*/
window.OpenSeadragon = window.OpenSeadragon || function( options ){
return new OpenSeadragon.Viewer( options );
};
if (typeof define === 'function' && define.amd) {