mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 15:14:16 +08:00
Replace Discourse.script
global with a module
This commit is contained in:
@ -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; }
|
||||
|
||||
|
Reference in New Issue
Block a user