Mercurial > hg > digilib-old
changeset 941:565789329189
fix non-local variable use.
author | robcast |
---|---|
date | Wed, 28 Dec 2011 11:42:59 +0100 |
parents | 0ba8358e2198 |
children | 2b136cdbc6b2 |
files | webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js webapp/src/main/webapp/jquery/jquery.digilib.regions.js |
diffstat | 2 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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); }
--- 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.