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
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/* global processDZIError:true */
(function( $ ){

View File

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

View File

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