Index: trunk/extensions/UploadWizard/resources/jquery/jquery.pubsub.js |
— | — | @@ -99,4 +99,19 @@ |
100 | 100 | } |
101 | 101 | return success; |
102 | 102 | }; |
| 103 | + |
| 104 | + /** |
| 105 | + * Prevent ready objects from hanging around forever |
| 106 | + */ |
| 107 | + $.purgeReadyEvents = function() { |
| 108 | + ready = {}; |
| 109 | + }; |
| 110 | + |
| 111 | + /** |
| 112 | + * Remove all subscriptions from everything |
| 113 | + */ |
| 114 | + $.purgeSubscriptions = function() { |
| 115 | + subs = {}; |
| 116 | + }; |
| 117 | + |
103 | 118 | } )( jQuery ); |
Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -775,6 +775,8 @@ |
776 | 776 | * Depending on whether we split uploading / detailing, it may actually always be as simple as loading a URL |
777 | 777 | */ |
778 | 778 | reset: function() { |
| 779 | + $.purgeReadyEvents(); |
| 780 | + $.purgeSubscriptions(); |
779 | 781 | this.removeMatchingUploads( function() { return true; } ); |
780 | 782 | }, |
781 | 783 | |