small Class fix

This commit is contained in:
mourner 2010-09-06 18:55:54 +03:00
parent b50d878e5d
commit afded5779f

View File

@ -21,10 +21,8 @@ L.Class.extend = function(/*Object*/ props) /*-> Class*/ {
proto.constructor = NewClass; proto.constructor = NewClass;
NewClass.prototype = proto; NewClass.prototype = proto;
// add callParent method // add superclass access
if (this != L.Class) { proto.superclass = this.prototype;
proto.superclass = this.prototype;
}
// mix static properties into the class // mix static properties into the class
if (props.statics) { if (props.statics) {