aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2010-07-31 10:05:59 +0000
committeranekos2010-07-31 10:05:59 +0000
commit24522b23b06efc1fbb8957c2f7e72c93d07f9046 (patch)
tree75f62caa63dba74c97ce15c530d123a166a69e26
parent1ac395dc8435ff245e1c82c3148ef504255f73c0 (diff)
downloadvimperator-plugins-24522b23b06efc1fbb8957c2f7e72c93d07f9046.tar.bz2
デバッグ情報をまとめる
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38083 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-xtwittperator.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/twittperator.js b/twittperator.js
index bb96c1e..bc6523d 100755
--- a/twittperator.js
+++ b/twittperator.js
@@ -1164,7 +1164,7 @@
}
}, 500);
- __context__.prev = {
+ debugVars.prev = {
sos: sos,
sis: sis,
interval: interval,
@@ -1494,12 +1494,16 @@
accessor.set("consumerKey", "GQWob4E5tCHVQnEVPvmorQ");
accessor.set("consumerSecret", "gVwj45GaW6Sp7gdua6UFyiF910ffIety0sD1dv36Cz8");
+ if (!__context__.hasOwnProperty('__debugVars__'))
+ __context__.__debugVars__ = {};
+ let debugVars = __context__.__debugVars__;
+
let history;
- if (__context__.hasOwnProperty('history')) {
- history = __context__.history;
+ if (debugVars.history) {
+ history = debugVars.history;
liberator.registerObserver('exit', function () accessor.set("history", history));
} else {
- history = __context__.history = accessor.get("history", []);
+ history = debugVars.history = accessor.get("history", []);
}
let tw = new TwitterOauth(accessor);