public
Description: Johnson wraps JavaScript in a loving Ruby embrace.
Homepage: http://github.com/jbarnette/johnson/wikis
Clone URL: git://github.com/jbarnette/johnson.git
making more shit work
tenderlove (author)
Fri May 30 16:53:35 -0700 2008
commit  41f0d9c7734080e6ce05f156eaaaf08e01707c14
tree    6dad4afc7a10cbca223de4b41b050efaef74ec4e
parent  e6e9ac78c9aee246329f6bc90b19c58c49a2f538
...
62
63
64
65
 
66
67
68
...
62
63
64
 
65
66
67
68
0
@@ -62,7 +62,7 @@ Johnson.require = function(file) {
0
     
0
     if(Ruby.File.send("file?", path)) {
0
       Johnson.required[file] = true;
0
-      Johnson.currentContext.load(path);
0
+      Johnson.runtime.load(path);
0
       
0
       return true;
0
     }
...
5
6
7
 
8
9
10
...
5
6
7
8
9
10
11
0
@@ -5,6 +5,7 @@ module Johnson
0
     def initialize(delegate=Johnson::SpiderMonkey::Runtime)
0
       @delegate = delegate.is_a?(Class) ? delegate.new : delegate
0
       evaluate(Johnson::PRELUDE, "Johnson::PRELUDE", 1)
0
+      global.Johnson.runtime = self
0
     end
0
     
0
     def [](key)

Comments