Bug 858326 - Uplift Add-on SDK changeset 99d7f27c7e

This commit is contained in:
Wes Kocher
2013-04-04 16:30:51 -07:00
parent 43be8beb8f
commit 0ea5bc392b
34 changed files with 1355 additions and 73 deletions

View File

@@ -275,6 +275,15 @@ function windows(type, options) {
}
exports.windows = windows;
/**
* Check if the given window is interactive.
* i.e. if its "DOMContentLoaded" event has already been fired.
* @params {nsIDOMWindow} window
*/
function isInteractive(window)
window.document.readyState === "interactive" || isDocumentLoaded(window)
exports.isInteractive = isInteractive;
/**
* Check if the given window is completely loaded.
* i.e. if its "load" event has already been fired and all possible DOM content