Simplify Layer.HTTPRequest initialize function. r=erilem (pullup #3470)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12267 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -58,9 +58,7 @@ OpenLayers.Layer.HTTPRequest = OpenLayers.Class(OpenLayers.Layer, {
|
|||||||
* options - {Object} Hashtable of extra options to tag onto the layer
|
* options - {Object} Hashtable of extra options to tag onto the layer
|
||||||
*/
|
*/
|
||||||
initialize: function(name, url, params, options) {
|
initialize: function(name, url, params, options) {
|
||||||
var newArguments = arguments;
|
OpenLayers.Layer.prototype.initialize.apply(this, [name, options]);
|
||||||
newArguments = [name, options];
|
|
||||||
OpenLayers.Layer.prototype.initialize.apply(this, newArguments);
|
|
||||||
this.url = url;
|
this.url = url;
|
||||||
this.params = OpenLayers.Util.extend( {}, params);
|
this.params = OpenLayers.Util.extend( {}, params);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user