small Class fix
This commit is contained in:
parent
b50d878e5d
commit
afded5779f
@ -21,10 +21,8 @@ L.Class.extend = function(/*Object*/ props) /*-> Class*/ {
|
||||
proto.constructor = NewClass;
|
||||
NewClass.prototype = proto;
|
||||
|
||||
// add callParent method
|
||||
if (this != L.Class) {
|
||||
// add superclass access
|
||||
proto.superclass = this.prototype;
|
||||
}
|
||||
|
||||
// mix static properties into the class
|
||||
if (props.statics) {
|
||||
|
Loading…
Reference in New Issue
Block a user