Declare assumed globals

This commit is contained in:
Chris Adams 2013-06-18 18:05:00 -04:00
parent e2bea810e3
commit 8c433ba81c
3 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
/* global processDZIError:true */
(function( $ ){ (function( $ ){

View File

@ -121,6 +121,7 @@
// Older IE. Support based on: // Older IE. Support based on:
// http://stackoverflow.com/questions/1125084/how-to-make-in-javascript-full-screen-windows-stretching-all-over-the-screen/7525760 // http://stackoverflow.com/questions/1125084/how-to-make-in-javascript-full-screen-windows-stretching-all-over-the-screen/7525760
fullScreenApi.requestFullScreen = function(){ fullScreenApi.requestFullScreen = function(){
/* global ActiveXObject:true */
var wscript = new ActiveXObject("WScript.Shell"); var wscript = new ActiveXObject("WScript.Shell");
if ( wscript !== null ) { if ( wscript !== null ) {
wscript.SendKeys("{F11}"); wscript.SendKeys("{F11}");

View File

@ -1283,6 +1283,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
request = new XMLHttpRequest(); request = new XMLHttpRequest();
} else if ( window.ActiveXObject ) { } else if ( window.ActiveXObject ) {
/*jshint loopfunc:true*/ /*jshint loopfunc:true*/
/* global ActiveXObject:true */
for ( var i = 0; i < ACTIVEX.length; i++ ) { for ( var i = 0; i < ACTIVEX.length; i++ ) {
try { try {
request = new ActiveXObject( ACTIVEX[ i ] ); request = new ActiveXObject( ACTIVEX[ i ] );
@ -1832,6 +1833,8 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
* @deprecated * @deprecated
*/ */
function processDZI( imageNode, tilesUrl ) { function processDZI( imageNode, tilesUrl ) {
/* global imageFormatSupported:true */
var fileFormat = imageNode.getAttribute( "Format" ), var fileFormat = imageNode.getAttribute( "Format" ),
sizeNode = imageNode.getElementsByTagName( "Size" )[ 0 ], sizeNode = imageNode.getElementsByTagName( "Size" )[ 0 ],
dispRectNodes = imageNode.getElementsByTagName( "DisplayRect" ), dispRectNodes = imageNode.getElementsByTagName( "DisplayRect" ),
@ -1883,6 +1886,8 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
* @deprecated * @deprecated
*/ */
function processDZIJSON( imageData, tilesUrl ) { function processDZIJSON( imageData, tilesUrl ) {
/* global imageFormatSupported:true */
var fileFormat = imageData.Format, var fileFormat = imageData.Format,
sizeData = imageData.Size, sizeData = imageData.Size,
dispRectData = imageData.DisplayRect || [], dispRectData = imageData.DisplayRect || [],