Replace Discourse.script global with a module

This commit is contained in:
Robin Ward
2015-03-09 12:32:54 -04:00
parent fc962eb378
commit fb726cfa0c
5 changed files with 22 additions and 20 deletions

View File

@ -5,10 +5,6 @@ window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
rootElement: '#main',
_docTitle: document.title,
script: function(url) {
return $LAB.script(this.getURL(url));
},
getURL: function(url) {
if (!url) { return url; }