change Ajax.js's loadURL() function to take directly function references instead of strings to be dereferenced through a 'handlers' variable. Update code in Tile.WFS... only place it is used.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@487 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-01 01:15:23 +00:00
parent c5fc30cf97
commit 60eba3e782
2 changed files with 17 additions and 31 deletions
+1 -4
View File
@@ -26,16 +26,13 @@ OpenLayers.Tile.WFS.prototype =
OpenLayers.Tile.prototype.initialize.apply(this, arguments);
this.features = new Array();
this.handlers = new Array();
this.handlers["requestSuccess"] = this.requestSuccess;
},
/**
*/
draw:function() {
OpenLayers.Tile.prototype.draw.apply(this, arguments);
this.loadFeaturesForRegion("requestSuccess");
this.loadFeaturesForRegion(this.requestSuccess);
},