Revert Ember 2.10+ for a short while

This commit is contained in:
Robin Ward
2016-12-15 16:43:38 -05:00
parent f01f95d62d
commit 21682fd60b
101 changed files with 1273 additions and 1866 deletions

View File

@ -5,16 +5,13 @@ const _loading = {};
function loadWithTag(path, cb) {
const head = document.getElementsByTagName('head')[0];
let finished = false;
let s = document.createElement('script');
s.src = path;
if (Ember.Test) {
Ember.Test.registerWaiter(() => finished);
}
if (Ember.Test) { Ember.Test.pendingAjaxRequests++; }
head.appendChild(s);
s.onload = s.onreadystatechange = function(_, abort) {
finished = true;
if (Ember.Test) { Ember.Test.pendingAjaxRequests--; }
if (abort || !s.readyState || s.readyState === "loaded" || s.readyState === "complete") {
s = s.onload = s.onreadystatechange = null;
if (!abort) {