Permalink
Browse files

forgot to reactivate google tracking

  • Loading branch information...
1 parent 59ef18d commit 9bfb356159d3aa5c476c39a645d97728c3f7206c @matthewfl matthewfl committed Nov 24, 2010
Showing with 6 additions and 5 deletions.
  1. +5 −4 sandbox/boxed.js
  2. +1 −1 static/index.html
View
@@ -14,10 +14,11 @@ var exports={};
if(modules[name]) return modules[name];
var code = get_code(name);
if(typeof code == "string") {
- var fn = eval("(function (exports, __context) { with(__context) { " + code + " }})");
- modules[name]={};
- fn(modules[name], {__server: __server, __loop_check_: loop_check, /*require: global.require,*/ __get_code: __get_code, __process_compile: __process_compile, __process_exit: __process_exit, debug: debug});
- if(modules[name].fail) throw name + " is not to be required in";
+ debug(code)
+ var fn = eval("(function (exports, __server, __loop_check_, require, __get_code, __process_compile, __process_exit, debug) {\n " + code + " \n return exports;\n})");
+ modules[name]=(function () { return {} })();
+ return fn.apply(modules[name], [modules[name], __server, loop_check, global.require, __get_code, __process_compile, __process_exit, debug]);
+ //if(modules[name].fail) throw name + " is not to be required in";
return modules[name];
}else {
return modules[name] = code;
View
@@ -28,7 +28,7 @@
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-504603-3']);
_gaq.push(['_setDomainName', 'jsapp.us']);
- //_gaq.push(['_trackPageview']);
+ _gaq.push(['_trackPageview']);
</script>
<link href="BespinEmbedded.css" type="text/css" rel="stylesheet">

0 comments on commit 9bfb356

Please sign in to comment.