]> source.dussan.org Git - jquery.git/commitdiff
No reason to double-bind the beforeunload event. Fixes #6113.
authorjeresig <jeresig@gmail.com>
Sat, 27 Feb 2010 15:03:43 +0000 (10:03 -0500)
committerjeresig <jeresig@gmail.com>
Sat, 27 Feb 2010 15:03:43 +0000 (10:03 -0500)
src/event.js

index 42655c9bc268de20d4bb69917882dec24a2f5312..b55208066a86ee2becf44367ac9d627d24bc828a 100644 (file)
@@ -520,9 +520,8 @@ jQuery.event = {
                                if ( this.setInterval ) {
                                        this.onbeforeunload = eventHandle;
                                }
-
-                               return false;
                        },
+
                        teardown: function( namespaces, eventHandle ) {
                                if ( this.onbeforeunload === eventHandle ) {
                                        this.onbeforeunload = null;