make constructors created by OpenLayers.Class call the parent's initialize method rather the parent constructor, this is to accomodate usage patterns of IGN's GeoPortal API, r=ahocevar (closes #3454)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@12215 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2011-08-08 12:43:47 +00:00
parent 925e34f968
commit c518df57e7
2 changed files with 4 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ OpenLayers.Class = function() {
var C = typeof F.initialize == "function" ?
F.initialize :
function(){ P.apply(this, arguments); };
function(){ P.prototype.initialize.apply(this, arguments); };
if (len > 1) {
var newArgs = [C, P].concat(