diff options
author | suVene | 2008-12-08 18:46:25 +0000 |
---|---|---|
committer | suVene | 2008-12-08 18:46:25 +0000 |
commit | 4badc3a64ccc5a239bcb259ef2bbbe773c4899b0 (patch) | |
tree | d0e9bb40a2d2b149f67d9a08c65c331e33ce8e57 /notifier.js | |
parent | 4012d388f4e4698ac13e30f0d8d3c310cdfe55d5 (diff) | |
download | vimperator-plugins-4badc3a64ccc5a239bcb259ef2bbbe773c4899b0.tar.bz2 |
とりあえず、はてなボトルの変更通知はできるようになった。TODO: wedata, animation.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26154 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'notifier.js')
-rw-r--r-- | notifier.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/notifier.js b/notifier.js index 5dcdfe5..48a4b8a 100644 --- a/notifier.js +++ b/notifier.js @@ -229,6 +229,7 @@ function bootstrap() { this.options.extra ); req.addEventListener('onSuccess', $U.bind(this, function(res) { + logger.log('initialized'); if (typeof this.parse == 'function') this.cache = this.parse(res); if (this.cache) this.initialized = true; @@ -249,11 +250,11 @@ function bootstrap() { if (typeof this.parse == 'function') parsed = this.parse(res); if (parsed && typeof this.diff == 'function') diff = this.diff(this.cache, parsed); if (diff && (typeof diff.length != 'undefined' && diff.length > 0)) { + this.cache = parsed; if (typeof this.buildMessages == 'function') { let messages = this.buildMessages([].concat(diff)); [].concat(messages).forEach($U.bind(this, function(m) this.notify(m))); } - this.cache = parsed; } })); req.get(); |