mirror of
https://github.com/jquery/jquery.git
synced 2026-02-18 08:01:36 -05:00
Core:CSS:Event: simplification of native method signatures
* Remove third argument from "addEventListener"
* Remove third argument from "removeEventListener"
* Remove second argument from "getComputedStyle"
Ref gh-2047
Ref 85577a348a
This commit is contained in:
@@ -68,8 +68,8 @@ jQuery.extend({
|
||||
*/
|
||||
function detach() {
|
||||
if ( document.addEventListener ) {
|
||||
document.removeEventListener( "DOMContentLoaded", completed, false );
|
||||
window.removeEventListener( "load", completed, false );
|
||||
document.removeEventListener( "DOMContentLoaded", completed );
|
||||
window.removeEventListener( "load", completed );
|
||||
|
||||
// Support: IE<9
|
||||
} else {
|
||||
@@ -110,10 +110,10 @@ jQuery.ready.promise = function( obj ) {
|
||||
// Standards-based browsers support DOMContentLoaded
|
||||
} else if ( document.addEventListener ) {
|
||||
// Use the handy event callback
|
||||
document.addEventListener( "DOMContentLoaded", completed, false );
|
||||
document.addEventListener( "DOMContentLoaded", completed );
|
||||
|
||||
// A fallback to window.onload, that will always work
|
||||
window.addEventListener( "load", completed, false );
|
||||
window.addEventListener( "load", completed );
|
||||
|
||||
// Support: IE<9
|
||||
// If IE event model is used
|
||||
|
||||
Reference in New Issue
Block a user