Skip to content

Commit

Permalink
Fix bug which stopped anon classes being in a super chain
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 9, 2013
1 parent 7411a93 commit a76135a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions corelib/class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ class Class
def self.new(sup = Object, &block)
%x{
function AnonClass(){};
var klass = Opal.boot(sup, AnonClass)
klass._name = nil;
klass._scope = sup._scope;
var klass = Opal.boot(sup, AnonClass)
klass._name = nil;
klass._scope = sup._scope;
klass.__parent = sup;
sup.$inherited(klass);
Expand Down

0 comments on commit a76135a

Please sign in to comment.