changeset 7:c1f1d5ffd6f2 default tip

An engine can now be created.
author Atul Varma <varmaa@toolness.com>
date Thu, 09 Apr 2009 08:30:19 -0700
parents cb390cc6efa2
children
files jsm-in-web.js
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jsm-in-web.js	Wed Apr 08 22:42:13 2009 -0700
+++ b/jsm-in-web.js	Thu Apr 09 08:30:19 2009 -0700
@@ -194,7 +194,11 @@
     gJsmReg.fetch(
       "resource://weave/engines.js",
       function(jsm) {
-        gJsmReg.import(jsm.url, {});
+        var obj = {};
+        gJsmReg.import(jsm.url, obj);
+        gJsmReg.import("resource://weave/util.js", obj);
+        obj.Utils.jsonLoad = function fakeJsonLoad() {};
+        var engine = new obj.Engine();
         console.log("Import successful.");
       });
   });