* Calls the callback when document is ready. * @param {!Document} doc * @param {function(!Document)} callback
(doc, callback)
| 54 | * @param {function(!Document)} callback |
| 55 | */ |
| 56 | function onDocumentReady(doc, callback) { |
| 57 | onDocumentState(doc, isDocumentReady, callback); |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Calls the callback once when document's state satisfies the condition. |
no test coverage detected