make instantiation faster by avoiding callInitHooks where not needed
This commit is contained in:
parent
4b7be05079
commit
d0e72934d7
@ -16,7 +16,7 @@ L.Class.extend = function (props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// call all constructor hooks
|
// call all constructor hooks
|
||||||
if (this._initHooks) {
|
if (this._initHooks.length) {
|
||||||
this.callInitHooks();
|
this.callInitHooks();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user