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;
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user