diff --git a/src/core/Class.js b/src/core/Class.js index 7ba19e89..27505fdf 100644 --- a/src/core/Class.js +++ b/src/core/Class.js @@ -60,6 +60,7 @@ L.Class.extend = function (props) { proto._initHooks = []; var parent = this; + NewClass.__super__ = parent.prototype; // add method for calling all hooks proto.callInitHooks = function () {