2013-02-13 04:38:43 -05:00
|
|
|
// hacks for ember, this sets up our app for testing
|
|
|
|
|
|
|
|
(function(){
|
|
|
|
|
|
|
|
var currentWindowOnload = window.onload;
|
|
|
|
window.onload = function() {
|
|
|
|
if (currentWindowOnload) {
|
|
|
|
currentWindowOnload();
|
|
|
|
}
|
|
|
|
|
2013-02-20 13:15:50 -05:00
|
|
|
jQuery('<div id="main"><div class="rootElement"></div></div>').appendTo(jQuery('body')).hide();
|
2013-02-13 04:38:43 -05:00
|
|
|
|
|
|
|
Discourse.SiteSettings = {}
|
|
|
|
|
|
|
|
Discourse.Router.map(function() {
|
|
|
|
this.route("jasmine",{path: "/jasmine"});
|
|
|
|
Discourse.routeBuilder.apply(this)
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
})()
|