aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2010-11-30 00:14:27 +0900
committeranekos2010-11-30 00:14:27 +0900
commite5ed812d35944e4f6b51c1f3be036eb4cd56285a (patch)
tree0ae1bf8c4b6e90101e85e6d943a952a6eebc7a3a
parent6231ce6783f65d7038305dc236c5542bbab966ab (diff)
downloadvimperator-plugins-e5ed812d35944e4f6b51c1f3be036eb4cd56285a.tar.bz2
コードの前後を入れ替え&コメント変更
-rw-r--r--twittperator.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/twittperator.js b/twittperator.js
index a9e9dd1..073e5b2 100644
--- a/twittperator.js
+++ b/twittperator.js
@@ -1802,6 +1802,25 @@ let PLUGIN_INFO =
Store.set("consumerSecret", "gVwj45GaW6Sp7gdua6UFyiF910ffIety0sD1dv36Cz8");
// }}}
+ // アクセストークン取得前 {{{
+ function preSetup() {
+ commands.addUserCommand(["tw[ittperator]"], "Twittperator setup command",
+ function(args) {
+ if (args["-getPIN"]) {
+ tw.getRequestToken(function(url) {
+ liberator.open(url, { where: liberator.NEW_TAB });
+ });
+ Twittperator.echo("Please get PIN code and execute\n :tw -setPIN {PINcode}");
+ } else if (args["-setPIN"]) {
+ tw.setPin(args["-setPIN"]);
+ }
+ }, {
+ options: [
+ [["-getPIN"], commands.OPTION_NOARG],
+ [["-setPIN"], commands.OPTION_STRING, null, null]
+ ],
+ }, true);
+ } // }}}
// アクセストークン取得後 {{{
function setup() {
function rejectMine(st)
@@ -2139,25 +2158,6 @@ let PLUGIN_INFO =
}
}, true); // }}}
} // }}}
- // PIN code を取得して AccessToken を得る前 {{{
- function preSetup() {
- commands.addUserCommand(["tw[ittperator]"], "Twittperator setup command",
- function(args) {
- if (args["-getPIN"]) {
- tw.getRequestToken(function(url) {
- liberator.open(url, { where: liberator.NEW_TAB });
- });
- Twittperator.echo("Please get PIN code and execute\n :tw -setPIN {PINcode}");
- } else if (args["-setPIN"]) {
- tw.setPin(args["-setPIN"]);
- }
- }, {
- options: [
- [["-getPIN"], commands.OPTION_NOARG],
- [["-setPIN"], commands.OPTION_STRING, null, null]
- ],
- }, true);
- } // }}}
// Initialization {{{
let setting =