fixed up things so that deviceready now uses DOMContentLoaded and if DCL fires before something is attached to deviceready the function will be called immediately

This commit is contained in:
Dave Johnson
2010-07-20 11:25:55 -07:00
parent ea8dc73525
commit 3365dba870
4 changed files with 201 additions and 9 deletions
-2
View File
@@ -193,8 +193,6 @@ document.addEventListener = function(evt, handler, capture) {
}
};
/**
* Execute a PhoneGap command in a queued fashion, to ensure commands do not
* execute with any race conditions, and only run when PhoneGap is ready to