Mercurial > hg > digilib-old
diff webapp/src/main/webapp/jquery/jquery.digilib.regions.js @ 941:565789329189
fix non-local variable use.
author | robcast |
---|---|
date | Wed, 28 Dec 2011 11:42:59 +0100 |
parents | 07c989c41b4f |
children | 5bde01bcfb16 |
line wrap: on
line diff
--- 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.