From c3ee79b01d44484745fe59e91be88b1b502bd80e Mon Sep 17 00:00:00 2001 From: Calvin Metcalf Date: Mon, 4 Feb 2013 08:00:02 -0500 Subject: [PATCH] enable coffeescript classes --- src/core/Class.js | 1 + 1 file changed, 1 insertion(+) 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 () {