From ae3307f23228f7bf7217b1c0ccb34384b9eedf32 Mon Sep 17 00:00:00 2001 From: Ryan Lynch Date: Wed, 1 Feb 2012 17:36:05 -0500 Subject: [PATCH] Moved $class property assignment to allow access to this.$class in __init__ --- classy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classy.js b/classy.js index 9ca6051..1e79d61 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; }