Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
re #65 thanks fiann and Johnathan Brochu
  • Loading branch information
thatcher committed Sep 10, 2009
1 parent 6e44eda commit a401db1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/dom/document.js
Expand Up @@ -116,6 +116,11 @@ __extend__(DOMDocument.prototype, {
// then fire window-onload event
event = document.createEvent();
event.initEvent("load");
$w.dispatchEvent( event, false );

//also use DOMContentLoaded event
event = document.createEvent();
event.initEvent("DOMContentLoaded");
$w.dispatchEvent( event, false );
};
xhr.send();
Expand Down
2 changes: 1 addition & 1 deletion src/window/event.js
Expand Up @@ -3,7 +3,7 @@
*/
// Window Events
$debug("Initializing Window Event.");
var $events = [],
var $events = [{}],
$onerror,
$onload,
$onunload;
Expand Down

0 comments on commit a401db1

Please sign in to comment.