[OpenLayers-Trac] [OpenLayers] #3470: OpenLayers.Layer.HTTPRequest
initialize simplification
OpenLayers
trac-20090302 at openlayers.org
Thu Aug 18 11:54:06 EDT 2011
#3470: OpenLayers.Layer.HTTPRequest initialize simplification
---------------------+------------------------------------------------------
Reporter: fredj | Owner:
Type: feature | Status: new
Priority: trivial | Milestone: 2.12 Release
Component: general | Version: SVN
Keywords: | State: Review
---------------------+------------------------------------------------------
in initialize we currently have:
{{{
initialize: function(name, url, params, options) {
var newArguments = arguments;
newArguments = [name, options];
OpenLayers.Layer.prototype.initialize.apply(this, newArguments);
...
}}}
could it be replaced with:
{{{
initialize: function(name, url, params, options) {
OpenLayers.Layer.prototype.initialize.apply(this, [name, options]);
...
}}}
or do I miss something?
--
Ticket URL: <http://trac.openlayers.org/ticket/3470>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list