Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix another leak caused by a window.resize event
  • Loading branch information
rosenfeld committed Apr 16, 2013
1 parent e22d2f6 commit c03e723
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jquery.notyfy.js
Expand Up @@ -185,6 +185,7 @@
close: function(event) {
if(self.closed) return;

$(window).unbind('resize.' + self.options.id);
// If we are still waiting in the queue just delete from queue
if(!self.shown) {
$.notyfy.queue = $.map($.notyfy.queue, function(n ,i) {
Expand Down Expand Up @@ -245,7 +246,8 @@
},

_removeContainerIfNew: function() {
self.container.filter('.i-am-new').remove()
self.container.filter('.i-am-new').remove();
delete self.container;
},

setText: function(text) {
Expand Down

0 comments on commit c03e723

Please sign in to comment.