make instantiation faster by avoiding callInitHooks where not needed

This commit is contained in:
Vladimir Agafonkin 2013-12-17 13:26:32 -05:00
parent 4b7be05079
commit d0e72934d7

View File

@ -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();
} }
}; };