Changeset 20873

Show
Ignore:
Timestamp:
10/07/08 03:40:23 (2 months ago)
Author:
drry
Message:
  • whitespace changes.
  • et cetera.
Files:
1 modified

Legend:

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

    r20857 r20873  
    55 * @description-ja Tombloo経由で選択領域などをpostする 
    66 * @author         Trapezoid 
    7  * @version        0.1c 
     7 * @version        0.1d 
    88 * ==/VimperatorPlugin== 
    99 * 
     
    1414 **/ 
    1515var TomblooService = Components.classes['@brasil.to/tombloo-service;1'].getService().wrappedJSObject; 
    16 function update(target, src, keys){ 
     16function update(target,src,keys){ 
    1717    if(keys){ 
    1818        keys.forEach(function(key){ 
    19                 target[key] = src[key]; 
    20                 }); 
     19            target[key] = src[key]; 
     20        }); 
    2121    } else { 
    22         for(var key in src) 
     22        for(let key in src) 
    2323            target[key] = src[key]; 
    2424    } 
     
    3939        //mouse     : mouse, 
    4040        //menu      : gContextMenu, 
    41     }, {}), win.location); 
     41    },{}),win.location); 
    4242} 
    4343 
     
    4848        completer: function(filter){ 
    4949            var completionList = new Array(); 
    50             for(var name in TomblooService.Tombloo.Service.actions) 
     50            for(let name in TomblooService.Tombloo.Service.actions) 
    5151                if(name.indexOf(filter) > -1) 
    5252                    completionList.push([name,name]); 
     
    5858liberator.commands.addUserCommand(['tombloo'],'Post by Tombloo', 
    5959    function(arg,special){ 
    60         TomblooService.Tombloo.Service.share(getContext(), TomblooService.Tombloo.Service.extractors[arg],special); 
     60        TomblooService.Tombloo.Service.share(getContext(),TomblooService.Tombloo.Service.extractors[arg],special); 
    6161    },{ 
    62                 bang: true, 
     62        bang: true, 
    6363        completer: function(filter){ 
    6464            var completionList = new Array(); 
    6565            var exts = TomblooService.Tombloo.Service.check(getContext()); 
    66             for(var i=0; i < exts.length; i++) 
     66            for(let i=0,l=exts.length; i < l; i++) 
    6767                if(exts[i].name.indexOf(filter) > -1) 
    6868                    completionList.push([exts[i].name,exts[i].name]);