From fd596c870dbacce1f31bcf5cd58281931744c4a8 Mon Sep 17 00:00:00 2001 From: suVene Date: Fri, 2 Jan 2009 18:22:47 +0000 Subject: add "subject_liberator_echomsg.js". git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@27801 d0d07461-0603-4401-acd4-de1884942a52 --- notifier.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'notifier.js') diff --git a/notifier.js b/notifier.js index 7028d7a..d231b3f 100644 --- a/notifier.js +++ b/notifier.js @@ -11,7 +11,7 @@ var PLUGIN_INFO = change notice framework. 変更通知フレームワーク。 suVene - 0.1.5 + 0.1.6 MIT 2.0pre 2.0pre @@ -92,10 +92,15 @@ check(): 指定したインターバルごとにフレームワークによって呼び出されます。 変更を検知した場合、liberator.plugins.notifier.Message のインスタンスを引数に this.notify(message) を呼び出してください。 +shutdown(): + 必要の無い場合、実装しなくても OK です。 + 変更通知フレームワークの終了時に呼ばれます。 ==== librator.plugins.notifier.SubjectHttp ==== Httpを利用した変更検知の基底クラスです。 リクエスト内容をキャッシュします。 +interval: + 秒で変更チェックするインターバルを指定します。デフォルトは 60 です。 options{}: url: URL を指定します。 @@ -270,7 +275,7 @@ function bootstrap() { var req = new libly.Request( this.options.url, this.options.headers, - $U.extend({ asynchronous: false }, this.options.extra) + $U.extend({ asynchronous: true }, this.options.extra) ); req.addEventListener('onSuccess', $U.bind(this, function(res) { var parsed, diff; -- cgit v1.2.3