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;
NewClass.prototype = proto;
// add callParent method
if (this != L.Class) {
proto.superclass = this.prototype;
}
// add superclass access
proto.superclass = this.prototype;
// mix static properties into the class
if (props.statics) {