fix for old firefox (5.x) - , false
authornamiltd <namiltd@users.noreply.github.com>
Thu, 22 Aug 2019 13:57:39 +0000 (15:57 +0200)
committernamiltd <namiltd@users.noreply.github.com>
Thu, 22 Aug 2019 13:57:39 +0000 (15:57 +0200)
js/jQuery/jquery.js

index 7fc60fc..ab0c99b 100644 (file)
@@ -3594,8 +3594,8 @@ jQuery.extend( {
  */
 function detach() {
        if ( document.addEventListener ) {
-               document.removeEventListener( "DOMContentLoaded", completed );
-               window.removeEventListener( "load", completed );
+               document.removeEventListener( "DOMContentLoaded", completed, false );
+               window.removeEventListener( "load", completed, false );
 
        } else {
                document.detachEvent( "onreadystatechange", completed );
@@ -3637,10 +3637,10 @@ jQuery.ready.promise = function( obj ) {
                } else if ( document.addEventListener ) {
 
                        // Use the handy event callback
-                       document.addEventListener( "DOMContentLoaded", completed );
+                       document.addEventListener( "DOMContentLoaded", completed, false );
 
                        // A fallback to window.onload, that will always work
-                       window.addEventListener( "load", completed );
+                       window.addEventListener( "load", completed, false );
 
                // If IE event model is used
                } else {