Changeset 37344
- Timestamp:
- 05/04/10 12:16:24 (3 years ago)
- Files:
-
- 1 modified
-
lang/javascript/vimperator-plugins/trunk/bitly.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/bitly.js
r37343 r37344 94 94 } 95 95 96 function jmp(uri, domain, callback) {96 function shorten (uri, domain, callback) { 97 97 function get () { 98 98 let req = new XMLHttpRequest(); … … 137 137 'Copy ' + domain + ' url', 138 138 function (args) { 139 jmp(args.literalArg || buffer.URL, domain, function (short) {139 shorten(args.literalArg || buffer.URL, domain, function (short) { 140 140 util.copyToClipboard(short); 141 141 liberator.echo('`' + short + "' was copied to clipboard."); … … 152 152 true 153 153 ); 154 __context__[name] = function (url, callback) shorten(url, domain, callback); 154 155 }); 155 156 156 __context__.get = jmp; 157 157 __context__.get = shorten; 158 158 })();
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)