Bug 858326 - Uplift Add-on SDK changeset 99d7f27c7e
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user