Changeset 37344

Show
Ignore:
Timestamp:
05/04/10 12:16:24 (3 years ago)
Author:
anekos
Message:

API 追加

Files:
1 modified

Legend:

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

    r37343 r37344  
    9494  } 
    9595 
    96   function jmp (uri, domain, callback) { 
     96  function shorten (uri, domain, callback) { 
    9797    function get () { 
    9898      let req = new XMLHttpRequest(); 
     
    137137      'Copy ' + domain + ' url', 
    138138      function (args) { 
    139         jmp(args.literalArg || buffer.URL, domain, function (short) { 
     139        shorten(args.literalArg || buffer.URL, domain, function (short) { 
    140140          util.copyToClipboard(short); 
    141141          liberator.echo('`' + short + "' was copied to clipboard."); 
     
    152152      true 
    153153    ); 
     154    __context__[name] = function (url, callback) shorten(url, domain, callback); 
    154155  }); 
    155156 
    156   __context__.get = jmp; 
    157  
     157  __context__.get = shorten; 
    158158})();