REFACTOR: Migrate markdown functionality in ES6

This commit is contained in:
Robin Ward
2016-06-14 14:31:51 -04:00
parent bc25d9a7a0
commit a546395397
146 changed files with 3259 additions and 5675 deletions

View File

@ -1,5 +1,3 @@
/* global assetPath */
const _loaded = {};
const _loading = {};
@ -26,7 +24,7 @@ export default function loadScript(url, opts) {
opts = opts || {};
return new Ember.RSVP.Promise(function(resolve) {
url = Discourse.getURL((assetPath && assetPath(url)) || url);
url = Discourse.getURL(url);
// If we already loaded this url
if (_loaded[url]) { return resolve(); }