Changeset 20873
- Timestamp:
- 10/07/08 03:40:23 (2 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/tombloo.js
r20857 r20873 5 5 * @description-ja Tombloo経由で選択領域などをpostする 6 6 * @author Trapezoid 7 * @version 0.1 c7 * @version 0.1d 8 8 * ==/VimperatorPlugin== 9 9 * … … 14 14 **/ 15 15 var TomblooService = Components.classes['@brasil.to/tombloo-service;1'].getService().wrappedJSObject; 16 function update(target, src,keys){16 function update(target,src,keys){ 17 17 if(keys){ 18 18 keys.forEach(function(key){ 19 target[key] = src[key];20 });19 target[key] = src[key]; 20 }); 21 21 } else { 22 for( varkey in src)22 for(let key in src) 23 23 target[key] = src[key]; 24 24 } … … 39 39 //mouse : mouse, 40 40 //menu : gContextMenu, 41 }, {}),win.location);41 },{}),win.location); 42 42 } 43 43 … … 48 48 completer: function(filter){ 49 49 var completionList = new Array(); 50 for( varname in TomblooService.Tombloo.Service.actions)50 for(let name in TomblooService.Tombloo.Service.actions) 51 51 if(name.indexOf(filter) > -1) 52 52 completionList.push([name,name]); … … 58 58 liberator.commands.addUserCommand(['tombloo'],'Post by Tombloo', 59 59 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); 61 61 },{ 62 bang: true,62 bang: true, 63 63 completer: function(filter){ 64 64 var completionList = new Array(); 65 65 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++) 67 67 if(exts[i].name.indexOf(filter) > -1) 68 68 completionList.push([exts[i].name,exts[i].name]);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)