aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/angular.suffix
diff options
context:
space:
mode:
authorMisko Hevery2010-05-25 14:23:52 -0700
committerMisko Hevery2010-05-25 14:23:52 -0700
commit5992e81b2e302c3b3375567e347227f6a9496585 (patch)
tree754f22bc649905c5265f66e8f78a0b5d49e9af38 /src/scenario/angular.suffix
parent2cce1ffc15ae6483da9cf354f7a5d2d26317427e (diff)
downloadangular.js-5992e81b2e302c3b3375567e347227f6a9496585.tar.bz2
added rake task to create a single file for scenario runner
Diffstat (limited to 'src/scenario/angular.suffix')
-rw-r--r--src/scenario/angular.suffix11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/scenario/angular.suffix b/src/scenario/angular.suffix
new file mode 100644
index 00000000..fc861cbf
--- /dev/null
+++ b/src/scenario/angular.suffix
@@ -0,0 +1,11 @@
+
+ var $scenarioRunner = new angular.scenario.Runner(window, jQuery);
+
+ window.onload = function(){
+ try {
+ if (previousOnLoad) previousOnLoad();
+ } catch(e) {}
+ $scenarioRunner.run(jQuery(window.document.body));
+ };
+
+})(window, document, window.onload);