Skip to content

Commit

Permalink
Fix bug where anonyous modules broken when included in anonymous class
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 9, 2013
1 parent 3e950fc commit 7411a93
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions corelib/module.rb
Expand Up @@ -2,10 +2,11 @@ class Module
def self.new(&block)
%x{
function AnonModule(){}
var klass = Opal.boot(Module, AnonModule);
klass._name = nil;
klass._scope = Module._scope;
klass._klass = Module;
var klass = Opal.boot(Module, AnonModule);
klass._name = nil;
klass._scope = Module._scope;
klass._klass = Module;
klass.__dep__ = []
if (block !== nil) {
var block_self = block._s;
Expand Down

0 comments on commit 7411a93

Please sign in to comment.