changeset 948:cd8c1fe97607

small cleanups.
author robcast
date Mon, 02 Jan 2012 22:30:50 +0100
parents 5bde01bcfb16
children 9aacae8ae45e
files webapp/src/main/webapp/jquery/jquery.digilib.js
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.js	Mon Jan 02 21:10:14 2012 +0100
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.js	Mon Jan 02 22:30:50 2012 +0100
@@ -95,7 +95,7 @@
         // maximum width or height of background image for drag-scroll
         'maxBgSize' : 10000,
         // parameters used by background image
-        'bgImgParams' : ['fn','pn','dw','dh','mo','rot'],
+        'bgImgParamNames' : ['fn','pn','dw','dh','mo','rot'],
         // reserved space in full page display (default value accounts for vertical scrollbar)
         'scalerInset' : 10
         };
@@ -103,11 +103,11 @@
     // list of plugins
     var plugins = {};
     // object to export functions to plugins
-    var fn;
+    var fn = null;
     // affine geometry plugin stub
-    var geom;
+    var geom = null;
     // rectangle with maximum zoom area
-    var FULL_AREA;
+    var FULL_AREA = null;
     // limit for float comparison
     var EPSILON = 0.0001;
     // list of buttons
@@ -562,7 +562,7 @@
             }
             bgSettings.mo = mo;
         }
-        var params = getParamString(bgSettings, settings.bgImgParams, defaults);
+        var params = getParamString(bgSettings, settings.bgImgParamNames, defaults);
         var url = settings.scalerBaseUrl + '?' + params;
         return url;
     };