mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-13 01:01:27 -05:00
21 lines
478 B
JavaScript
21 lines
478 B
JavaScript
// hacks for ember, this sets up our app for testing
|
|
|
|
(function(){
|
|
|
|
var currentWindowOnload = window.onload;
|
|
window.onload = function() {
|
|
if (currentWindowOnload) {
|
|
currentWindowOnload();
|
|
}
|
|
|
|
$('<div id="main"><div class="rootElement"></div></div>').appendTo($('body')).hide();
|
|
|
|
Discourse.SiteSettings = {}
|
|
|
|
Discourse.Router.map(function() {
|
|
this.route("jasmine",{path: "/jasmine"});
|
|
Discourse.routeBuilder.apply(this)
|
|
});
|
|
}
|
|
|
|
})()
|