Changeset 24578

Show
Ignore:
Timestamp:
11/21/08 22:49:51 (7 weeks ago)
Author:
drry
Message:
  • 小さな変更でありんす。
Location:
lang/javascript/vimperator-plugins/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/blinkelement.js

    r24576 r24578  
    11/* 
    22 * ==VimperatorPlugin== 
    3  * @name            nicontroller.js 
     3 * @name            blinkelement.js 
    44 * @description     blink specified elements. 
    55 * @description-ja  指定した要素を点滅させる。 
  • lang/javascript/vimperator-plugins/trunk/hidecritter.js

    r24576 r24578  
    11/* 
    22 * ==VimperatorPlugin== 
    3  * @name            nicontroller.js 
     3 * @name            hidecritter.js 
    44 * @description     hide specified elements. 
    55 * @description-ja  指定した要素を隠す。 
  • lang/javascript/vimperator-plugins/trunk/walk-input.js

    r24334 r24578  
    1919// </html> 
    2020 
    21 (function() { 
     21(function () { 
    2222 
    2323var xpath = '//input[@type="text" or @type="password" or @type="search" or not(@type)] | //textarea'; 
    2424 
    25 var walkinput = function(forward) { 
     25var walkinput = function (forward) { 
    2626    var focused = document.commandDispatcher.focusedElement; 
    2727    var current = null; 
     
    3333      var doc = frame.document; 
    3434      if (doc.body.localName.toLowerCase() == 'body') { 
    35         var r = doc.evaluate(xpath, doc, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); 
     35        let r = doc.evaluate(xpath, doc, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); 
    3636        for (let i = 0, l = r.snapshotLength; i < l; ++i) { 
    3737            let e = r.snapshotItem(i); 
     
    5353      return; 
    5454 
    55     let elem = forward ? (next || list[0]) 
     55    var elem = forward ? (next || list[0]) 
    5656                       : (prev || list[list.length - 1]); 
    5757    elem.focus();