From 427654cd8aab97d3aebd0b20b8f5aa34e186c37e Mon Sep 17 00:00:00 2001 From: suVene Date: Fri, 19 Dec 2008 19:46:13 +0000 Subject: * bugfix.(無駄なtimer) git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@27111 d0d07461-0603-4401-acd4-de1884942a52 --- notifier/observer_growl.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'notifier') diff --git a/notifier/observer_growl.js b/notifier/observer_growl.js index 473800a..4fa3aed 100644 --- a/notifier/observer_growl.js +++ b/notifier/observer_growl.js @@ -5,7 +5,7 @@ var PLUGIN_INFO = notification from the subjects is notified to you by the Growl style. Growl風通知。 suVene - 0.1.2 + 0.1.3 2.0pre 2.0pre = 2) { @@ -162,8 +162,10 @@ notifier.observer.register(notifier.Observer, { } removeNodes.forEach(function(element) element.__data__.remove()); - if (force || container.childNodes.length == 0) + if (force || container.childNodes.length == 0) { clearInterval(container.__interval__); + container.__interval__ = 0; + } }, removeAll: function(a) { -- cgit v1.2.3