From cc61677a4801e8ec360946f106dbd6bacc3f886a Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 1 Mar 2013 11:11:16 -0800 Subject: [PATCH] Make $class exist inside __init__ http://cdn.memegenerator.net/instances/400x/28616388.jpg --- classy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classy.js b/classy.js index 9ca6051..66e3586 100644 --- a/classy.js +++ b/classy.js @@ -123,9 +123,9 @@ if (disable_constructor) return; var proper_this = context === this ? cheapNew(arguments.callee) : this; + proper_this.$class = rv; if (proper_this.__init__) proper_this.__init__.apply(proper_this, arguments); - proper_this.$class = rv; return proper_this; } @@ -158,4 +158,4 @@ /* export the class */ return Class; -}); \ No newline at end of file +});