diff --git a/lib/OpenLayers/BaseTypes.js b/lib/OpenLayers/BaseTypes.js index 02e21c8ab5..c09f531bd9 100644 --- a/lib/OpenLayers/BaseTypes.js +++ b/lib/OpenLayers/BaseTypes.js @@ -9,7 +9,7 @@ OpenLayers.Class = { create: function() { return function() { - if (!arguments || arguments[0] != OpenLayers.Class.isPrototype) + if (arguments && arguments[0] != OpenLayers.Class.isPrototype) this.initialize.apply(this, arguments); } },