mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
f661fa609e
http://meta.discourse.org/t/is-it-better-for-discourse-to-use-javascript-or-coffeescript/3153
21 lines
492 B
JavaScript
21 lines
492 B
JavaScript
// hacks for ember, this sets up our app for testing
|
|
|
|
(function(){
|
|
|
|
var currentWindowOnload = window.onload;
|
|
window.onload = function() {
|
|
if (currentWindowOnload) {
|
|
currentWindowOnload();
|
|
}
|
|
|
|
jQuery('<div id="main"><div class="rootElement"></div></div>').appendTo(jQuery('body')).hide();
|
|
|
|
Discourse.SiteSettings = {}
|
|
|
|
Discourse.Router.map(function() {
|
|
this.route("jasmine",{path: "/jasmine"});
|
|
Discourse.routeBuilder.apply(this)
|
|
});
|
|
}
|
|
|
|
})()
|