Skip to content

Commit

Permalink
Spaces to tabs
Browse files Browse the repository at this point in the history
Changes from @ibolmo

ref #2476
  • Loading branch information
okolvik authored and SergioCrisostomo committed Jul 21, 2014
1 parent 7c4b036 commit 7a15612
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
7 changes: 3 additions & 4 deletions Source/Browser/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,9 @@ if (document.execCommand) try {
/*<ltIE9>*/
if (this.attachEvent && !this.addEventListener){
var unloadEvent = function(){
this.detachEvent('onunload', unloadEvent);
document.head = document.html = document.window = null;
// cleanup scope vars
window = this.Window = document = null;
this.detachEvent('onunload', unloadEvent);
document.head = document.html = document.window = null;
window = this.Window = document = null;
};
this.attachEvent('onunload', unloadEvent);
}
Expand Down
18 changes: 9 additions & 9 deletions Source/Utilities/DOMReady.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ var ready,
testElement = document.createElement('div');

var domready = function(){
clearTimeout(timer);
if (!ready) {
Browser.loaded = ready = true;
document.removeListener('DOMContentLoaded', domready).removeListener('readystatechange', check);
document.fireEvent('domready');
window.fireEvent('domready');
}
// cleanup scope vars
document = window = testElement = null;
clearTimeout(timer);
if (!ready) {
Browser.loaded = ready = true;
document.removeListener('DOMContentLoaded', domready).removeListener('readystatechange', check);
document.fireEvent('domready');
window.fireEvent('domready');
}
// cleanup scope vars
document = window = testElement = null;
};

var check = function(){
Expand Down

0 comments on commit 7a15612

Please sign in to comment.