diff options
author | teramako | 2010-08-09 15:46:54 +0000 |
---|---|---|
committer | teramako | 2010-08-09 15:46:54 +0000 |
commit | c312955126664c9d1111b23bd65bd5b0c20c0f74 (patch) | |
tree | 54f6ee51226a574c512845e528caeba0915afa45 /twittperator/twlist-tab.tw | |
parent | 68adf05c93be29af782aec487afdbb608a964ed3 (diff) | |
download | vimperator-plugins-c312955126664c9d1111b23bd65bd5b0c20c0f74.tar.bz2 |
preventDefault and stopPropagation on click
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38240 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twittperator/twlist-tab.tw')
-rw-r--r-- | twittperator/twlist-tab.tw | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/twittperator/twlist-tab.tw b/twittperator/twlist-tab.tw index 0596aa3..3331f29 100644 --- a/twittperator/twlist-tab.tw +++ b/twittperator/twlist-tab.tw @@ -215,6 +215,8 @@ function formatText (str) { return x; } function onClick (evt) { + evt.preventDefault(); + evt.stopPropagation(); let where = (evt.ctrlKey || evt.button == 1) ? liberator.NEW_TAB : liberator.CURRENT_TAB; let url = evt.target.getAttribute("href"); liberator.open(url, {where: where}); |