# HG changeset patch # User robcast # Date 1325068979 -3600 # Node ID 5657893291894d94df08cb8f1cb4501a7c376c3c # Parent 0ba8358e219896b86dced4ff5c733c4ff950f285 fix non-local variable use. diff -r 0ba8358e2198 -r 565789329189 webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js --- a/webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js Thu Dec 22 15:17:14 2011 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js Wed Dec 28 11:42:59 2011 +0100 @@ -78,7 +78,7 @@ var handleSetup = function (evt) { console.debug("birdseye: handleSetup"); - data = this; + var data = this; // bird's eye view creation if (data.settings.isBirdDivVisible) { setupBirdDiv(data); @@ -88,7 +88,7 @@ var handleUpdate = function (evt) { console.debug("birdseye: handleUpdate"); - data = this; + var data = this; if (data.settings.isBirdDivVisible) { renderBirdArea(data); setupBirdDrag(data); @@ -97,7 +97,7 @@ var handleRedisplay = function (evt) { console.debug("birdseye: handleRedisplay"); - data = this; + var data = this; if (data.settings.isBirdDivVisible) { updateBirdDiv(data); } @@ -105,7 +105,7 @@ var handleDragZoom = function (evt, zoomArea) { //console.debug("birdseye: handleDragZoom za="+zoomArea); - data = this; + var data = this; if (data.settings.isBirdDivVisible) { setBirdZoom(data, zoomArea); } diff -r 0ba8358e2198 -r 565789329189 webapp/src/main/webapp/jquery/jquery.digilib.regions.js --- a/webapp/src/main/webapp/jquery/jquery.digilib.regions.js Thu Dec 22 15:17:14 2011 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.regions.js Wed Dec 28 11:42:59 2011 +0100 @@ -436,7 +436,7 @@ // event handler, reads region parameter and creates region divs var handleSetup = function (evt) { - data = this; + var data = this; console.debug("regions: handleSetup", data.settings.rg); // regions with content are given in HTML divs if (data.settings.hasRegionContent) { @@ -450,7 +450,7 @@ // event handler, sets buttons and shows regions when scaler img is reloaded var handleUpdate = function (evt) { - data = this; + var data = this; console.debug("regions: handleUpdate"); var settings = data.settings; fn.highlightButtons(data, 'regions' , settings.isRegionVisible); @@ -460,7 +460,7 @@ // event handler, redisplays regions (e.g. in a new position) var handleRedisplay = function (evt) { - data = this; + var data = this; console.debug("regions: handleRedisplay"); // renderRegions(data); }; @@ -468,7 +468,7 @@ // event handler var handleDragZoom = function (evt, zoomArea) { // console.debug("regions: handleDragZoom, zoomArea:", zoomArea); - // data = this; + // var data = this; }; // plugin installation called by digilib on plugin object.