Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 3f2c3cd

Browse files
committed
fixes unminified build in firefox
1 parent 44b2cd5 commit 3f2c3cd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/system.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,6 @@
227227
var curScript = document.getElementsByTagName('script');
228228
curScript = curScript[curScript.length - 1];
229229

230-
// DOM ready, taken from https://github.com/jquery/jquery/blob/master/src/core/ready.js#L63
231-
if (document.readyState === 'complete') {
232-
setTimeout(ready);
233-
}
234-
else if (document.addEventListener) {
235-
document.addEventListener('DOMContentLoaded', completed, false);
236-
window.addEventListener('load', completed, false);
237-
}
238-
239230
function completed() {
240231
document.removeEventListener( "DOMContentLoaded", completed, false );
241232
window.removeEventListener( "load", completed, false );
@@ -261,6 +252,15 @@
261252
}
262253
}
263254

255+
// DOM ready, taken from https://github.com/jquery/jquery/blob/master/src/core/ready.js#L63
256+
if (document.readyState === 'complete') {
257+
setTimeout(ready);
258+
}
259+
else if (document.addEventListener) {
260+
document.addEventListener('DOMContentLoaded', completed, false);
261+
window.addEventListener('load', completed, false);
262+
}
263+
264264
// run the data-init function on the script tag
265265
if (curScript.getAttribute('data-init'))
266266
window[curScript.getAttribute('data-init')]();

0 commit comments

Comments
 (0)