diff --git a/src/core/Class.js b/src/core/Class.js index 9c3635cf..c9f713b5 100644 --- a/src/core/Class.js +++ b/src/core/Class.js @@ -16,7 +16,7 @@ L.Class.extend = function (props) { } // call all constructor hooks - if (this._initHooks) { + if (this._initHooks.length) { this.callInitHooks(); } };