diff options
author | anekos | 2010-11-30 00:12:47 +0900 |
---|---|---|
committer | anekos | 2010-11-30 00:12:47 +0900 |
commit | 6231ce6783f65d7038305dc236c5542bbab966ab (patch) | |
tree | 782c9c99211834c56aaf07e51c5bfa68c1b62227 /twittperator.js | |
parent | cc88cd3b0310a6ea7692b5ef06188d4493c70953 (diff) | |
download | vimperator-plugins-6231ce6783f65d7038305dc236c5542bbab966ab.tar.bz2 |
折り畳み追加
Diffstat (limited to 'twittperator.js')
-rw-r--r-- | twittperator.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/twittperator.js b/twittperator.js index 6267bb0..a9e9dd1 100644 --- a/twittperator.js +++ b/twittperator.js @@ -1802,7 +1802,8 @@ let PLUGIN_INFO = Store.set("consumerSecret", "gVwj45GaW6Sp7gdua6UFyiF910ffIety0sD1dv36Cz8"); // }}} - function setup() { // {{{ + // アクセストークン取得後 {{{ + function setup() { function rejectMine(st) let (n = setting.screenName) (n ? (!st.user || st.user.screen_name !== n) : st); @@ -1840,7 +1841,7 @@ let PLUGIN_INFO = }; })(); // }}} - const SubCommand = function(init) { + const SubCommand = function(init) { // {{{ return { __proto__: init, get expr() { @@ -1855,7 +1856,7 @@ let PLUGIN_INFO = match: function(s) s.match(this.expr), action: function(args) init.action(args.literalArg.replace(this.expr, "").trim()) }; - }; + }; // }}} const SubCommands = [ // {{{ SubCommand({ @@ -2179,9 +2180,9 @@ let PLUGIN_INFO = let history = __context__.Tweets; if (!history) - history = __context__.Tweets = accessor.get("history", []); + history = __context__.Tweets = Store.get("history", []); - let tw = new TwitterOauth(accessor); + let tw = new TwitterOauth(Store); // ストリーム let ChirpUserStream = Stream({ name: 'chirp stream', url: "https://userstream.twitter.com/2/user.json" }); @@ -2205,7 +2206,7 @@ let PLUGIN_INFO = TrackingStream.start({track: setting.trackWords}); __context__.onUnload = function() { - accessor.set("history", history); + Store.set("history", history); ChirpUserStream.stop(); TrackingStream.stop(); }; |