diff client/digitallibrary/jquery/jquery.digilib.js @ 717:b3cd640b4b71 jquery

fix accidentally introduced but which prevented 'zoom area'
author hertzhaft
date Sun, 30 Jan 2011 21:20:23 +0100
parents 6b9b8e1401d8
children d6d486fe44c2
line wrap: on
line diff
--- a/client/digitallibrary/jquery/jquery.digilib.js	Sun Jan 30 18:52:19 2011 +0100
+++ b/client/digitallibrary/jquery/jquery.digilib.js	Sun Jan 30 21:20:23 2011 +0100
@@ -1051,13 +1051,13 @@
 
     // returns function for load event of scaler img
     var scalerImgLoadedHandler = function (data) {
+        var $img = data.$img;
         return function () {
             console.debug("img loaded! this=", this, " data=", data);
             // create Transform from current area and picsize
             data.imgTrafo = getImgTrafo($img, data.zoomArea,
                     data.settings.rot, data.scalerFlags.hmir, data.scalerFlags.vmir);
             console.debug("imgTrafo=", data.imgTrafo);
-            var $img = data.$img;
             // show image in case it was hidden (for example in zoomDrag)
             $img.show();
             // display marks