Permalink
Browse files

Making it work on Chrome.

  • Loading branch information...
1 parent b8e341c commit 112a4c72497444f18d05ede7806670b837f87293 @gimite committed Jul 19, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/hot_ruby_core.js
View
@@ -211,13 +211,13 @@ RubyVM.prototype = {
var me = this;
var ctx = new me.Context();
me.topObject_ = ctx.newObject(ctx.Object);
- var native = ctx.newObject(ctx.NativeEnvironment);
- ctx.setGlobalVar("$native", native);
+ var nativeEnv = ctx.newObject(ctx.NativeEnvironment);
+ ctx.setGlobalVar("$native", nativeEnv);
if (me.env_ == "flash") {
// Create _root NativeObject
var obj = ctx.newObject(ctx.NativeObject);
obj.value = _root;
- ctx.setInstanceVar(native, "_root", obj);
+ ctx.setInstanceVar(nativeEnv, "_root", obj);
}
},

0 comments on commit 112a4c7

Please sign in to comment.