protect for subclassing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@471 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -28,12 +28,17 @@ OpenLayers.Layer.WFS.prototype =
|
|||||||
*/
|
*/
|
||||||
initialize: function(name, url, params, featureClass) {
|
initialize: function(name, url, params, featureClass) {
|
||||||
this.featureClass = featureClass;
|
this.featureClass = featureClass;
|
||||||
|
|
||||||
var newArguments = new Array(name, url, params);
|
var newArguments = new Array();
|
||||||
|
if (arguments.length > 0) {
|
||||||
|
newArguments.push(name, url, params);
|
||||||
|
}
|
||||||
OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);
|
OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);
|
||||||
OpenLayers.Layer.Markers.prototype.initialize.apply(this, newArguments);
|
OpenLayers.Layer.Markers.prototype.initialize.apply(this, newArguments);
|
||||||
|
|
||||||
OpenLayers.Util.applyDefaults(this.params, this.DEFAULT_PARAMS);
|
if (arguments.length > 0) {
|
||||||
|
OpenLayers.Util.applyDefaults(this.params, this.DEFAULT_PARAMS);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user