aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator
diff options
context:
space:
mode:
authorGael Pasgrimaud2011-06-25 10:15:32 +0200
committerGael Pasgrimaud2011-06-25 10:15:32 +0200
commitb5269a892b3a7dcb89c9c1913797b3d74ff1c476 (patch)
treeb3e06d958238cd3c8f2cb0922e588c64c40e54a3 /twittperator
parent95f5752645a1948a3f3d29471fbb7eeb98a4ecaa (diff)
parentd4e2c5327d707808086d3c1f020e884972698b21 (diff)
downloadvimperator-plugins-b5269a892b3a7dcb89c9c1913797b3d74ff1c476.tar.bz2
Merge branch 'master' of git://github.com/vimpr/vimperator-plugins
Diffstat (limited to 'twittperator')
-rw-r--r--twittperator/pong.tw2
-rw-r--r--twittperator/twlist-win.tw4
2 files changed, 3 insertions, 3 deletions
diff --git a/twittperator/pong.tw b/twittperator/pong.tw
index dae2e15..9f3f381 100644
--- a/twittperator/pong.tw
+++ b/twittperator/pong.tw
@@ -12,7 +12,7 @@
plugins.twittperator.ChirpUserStream.addListener(
function onMsg (msg, raw) {
function negi (pattern, reply) {
- if (RegExp('^\\s*@' + screenName + '\\s+' + pattern + '\s*$')(msg.text.trim())) {
+ if (RegExp('^\\s*@' + screenName + '\\s+' + pattern + '\s*$').test(msg.text.trim())) {
plugins.twittperator.Twitter.say('@' + msg.user.screen_name + ' ' + reply, msg.id_str);
return true;
}
diff --git a/twittperator/twlist-win.tw b/twittperator/twlist-win.tw
index 674f4f3..939e472 100644
--- a/twittperator/twlist-win.tw
+++ b/twittperator/twlist-win.tw
@@ -193,10 +193,10 @@ let winXML = <>
function getCurrentListBox(){
return tabBox.tabpanels.selectedPanel.firstChild;
}
- function getParent(node, class){
+ function getParent(node, klass){
let elm = node;
while (elm != document.documentElement){
- if (elm instanceof class)
+ if (elm instanceof klass)
return elm;
elm = elm.parentNode;
}