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:
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user