diff options
author | suVene | 2009-01-02 18:22:47 +0000 |
---|---|---|
committer | suVene | 2009-01-02 18:22:47 +0000 |
commit | fd596c870dbacce1f31bcf5cd58281931744c4a8 (patch) | |
tree | 86776653315a97367f41eea98cb8fd1375f5a9ea /notifier.js | |
parent | bb9f9df702dde21b8ec258121226c1abdfbf8589 (diff) | |
download | vimperator-plugins-fd596c870dbacce1f31bcf5cd58281931744c4a8.tar.bz2 |
add "subject_liberator_echomsg.js".
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@27801 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'notifier.js')
-rw-r--r-- | notifier.js | 9 |
1 files changed, 7 insertions, 2 deletions
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 = <description>change notice framework.</description> <description lang="ja">変更通知フレームワーク。</description> <author mail="suvene@zeromemory.info" homepage="http://zeromemory.sblo.jp/">suVene</author> - <version>0.1.5</version> + <version>0.1.6</version> <license>MIT</license> <minVersion>2.0pre</minVersion> <maxVersion>2.0pre</maxVersion> @@ -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; |