Index: trunk/extensions/FlaggedRevs/frontend/modules/ext.flaggedRevs.review.js |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | // Display "advertise" notice |
37 | 37 | fr.enableAjaxReviewActivity(); |
38 | 38 | // "De-advertise" user as "no longer reviewing" on navigate-away |
39 | | - $( window ).bind( 'beforeunload', function( e ) { |
| 39 | + $( window ).unload( function( e ) { |
40 | 40 | if ( fr.isUserReviewing === 1 ) { |
41 | 41 | fr.deadvertiseReviewing(); |
42 | 42 | } |