diff options
author | anekos | 2008-10-29 17:40:03 +0000 |
---|---|---|
committer | anekos | 2008-10-29 17:40:03 +0000 |
commit | 8525f7e7342ebbe59bc8c9e56915dfa1c59f7f5f (patch) | |
tree | ceba53eb19efb7f5ca836f224f9414d0b7775e13 /auto_detect_link.js | |
parent | c7f5a53990c868ec019e4d3fb59bc9491c761374 (diff) | |
download | vimperator-plugins-8525f7e7342ebbe59bc8c9e56915dfa1c59f7f5f.tar.bz2 |
auto_pagerize での検出が前後共に聞いていたのを修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22340 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'auto_detect_link.js')
-rw-r--r-- | auto_detect_link.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/auto_detect_link.js b/auto_detect_link.js index f3f8576..02294ed 100644 --- a/auto_detect_link.js +++ b/auto_detect_link.js @@ -154,7 +154,7 @@ liberator.log('click: ' + elem); var e = content.document.createEvent('MouseEvents'); e.initMouseEvent('click', true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null); - elem.dispatchEvent( e ); + elem.dispatchEvent(e); } @@ -224,7 +224,6 @@ } result = result.concat(temp.reverse()); } - liberator.log(result); // succ string let (dm, succs, file = file, left = '', temp = []) { while (file && (dm = file.match(/(^|[^a-zA-Z])([a-zA-Z])([^a-zA-Z]|$)/))) { @@ -363,14 +362,14 @@ setting = getCurrentSetting(setting); // TODO - if (setting.useAutoPagerize) { + if (setting.useAutoPagerize && next) { let apnext = getAutopagerizeNext(); if (apnext) { return { type: 'aplink', frame: content, uri: apnext.href || apnext.action || apnext.value, - text: apnext.textContent, + text: apnext.textContent || apnext.title || apnext, element: apnext }; } |