OpenLayers OpenLayers

Changeset 471

Show
Ignore:
Timestamp:
05/30/06 13:54:11 (3 years ago)
Author:
euzuro
Message:

protect for subclassing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Layer/WFS.js

    r445 r471  
    2929    initialize: function(name, url, params, featureClass) { 
    3030        this.featureClass = featureClass; 
    31  
    32         var newArguments = new Array(name, url, params); 
     31         
     32        var newArguments = new Array(); 
     33        if (arguments.length > 0) { 
     34            newArguments.push(name, url, params); 
     35        } 
    3336        OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments); 
    3437        OpenLayers.Layer.Markers.prototype.initialize.apply(this, newArguments); 
    35  
    36         OpenLayers.Util.applyDefaults(this.params, this.DEFAULT_PARAMS); 
     38     
     39        if (arguments.length > 0) { 
     40            OpenLayers.Util.applyDefaults(this.params, this.DEFAULT_PARAMS); 
     41        } 
    3742    },     
    3843