* The ready event handler and self cleanup method
()
| 3607 | * The ready event handler and self cleanup method |
| 3608 | */ |
| 3609 | function completed() { |
| 3610 | |
| 3611 | // readyState === "complete" is good enough for us to call the dom ready in oldIE |
| 3612 | if ( document.addEventListener || |
| 3613 | window.event.type === "load" || |
| 3614 | document.readyState === "complete" ) { |
| 3615 | |
| 3616 | detach(); |
| 3617 | jQuery.ready(); |
| 3618 | } |
| 3619 | } |
| 3620 | |
| 3621 | jQuery.ready.promise = function( obj ) { |
| 3622 | if ( !readyList ) { |