diff options
author | teramako | 2011-07-27 23:03:08 +0900 |
---|---|---|
committer | teramako | 2011-07-27 23:24:30 +0900 |
commit | d1e2b94bd10c50ce56b9f1a3b172287be9223455 (patch) | |
tree | 1af3decc92fd2693e4f3d8872b5721972f521256 /google-plus-commando.js | |
parent | df72be00cff525da777ae8de0c4ad56cae77d04b (diff) | |
download | vimperator-plugins-d1e2b94bd10c50ce56b9f1a3b172287be9223455.tar.bz2 |
branch に追いつき
自分のせいで変なことをしてしまったので、branchに行った変更をmaster側に手動パッチ
Diffstat (limited to 'google-plus-commando.js')
-rw-r--r-- | google-plus-commando.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/google-plus-commando.js b/google-plus-commando.js index d7b45e9..4d3f3e4 100644 --- a/google-plus-commando.js +++ b/google-plus-commando.js @@ -334,7 +334,7 @@ let g:gplus_commando_map_menu = "m" case "ul": case "ol": case "dl": - txt = "<br/>\n" + nodelist2txt(children, localName, aIndent + " ").join(""); + txt = "<br/>\n" + nodelist2txt(children, localName, aIndent + " ").join("") + "<br/>\n"; break; case "li": txt = aIndent + (aParentTag == "ol" ? (" " + (aIndex+1)).slice(-2) + ". " : " * ").replace(" ", " ", "g") + @@ -862,7 +862,7 @@ let g:gplus_commando_map_menu = "m" if (prefix) context.advance(prefix.length); - return [['anyone', 'to public']].concat([[v[0], ''] for ([, v] in Iterator(store.get('CIRCLES', [])))]); + return [['anyone', 'to public']].concat([v for ([, v] in Iterator(store.get('CIRCLES', [])))]); }], [['-setup'], commands.OPTION_NOARG], ], @@ -891,7 +891,10 @@ let g:gplus_commando_map_menu = "m" store.set('AT', data[1][15]); let circles = data[12][0]; // CIRCLES[]: [[Name, Description, ID], ...] - store.set('CIRCLES', circles.slice(0, circles.length / 2).map(function (c) [c[1][0], c[1][2], c[0][0]])); + store.set('CIRCLES', [ + ['circles', 'Everyone in your circles', '1c'], + ['excircles', 'Everyone in your circles, plus all the people in their circles', '1f'], + ].concat([[c[1][0],c[1][2],c[0][0]] for each(c in circles.slice(0, circles.length / 2))])); onSuccess(); return true; } catch (e) { @@ -984,18 +987,15 @@ let g:gplus_commando_map_menu = "m" XBW.setJSDefaultStatus(msg); }; - XPCOMUtils.defineLazyServiceGetter(this, 'MIME', '@mozilla.org/mime;1', 'nsIMIMEService'); + XPCOMUtils.defineLazyServiceGetter(__context__, 'MIME', '@mozilla.org/mime;1', 'nsIMIMEService'); /** * Google+への送信データ生成 * @Constructor * @param {String} aMessage - * @param {Object} aPage 現ページのコンテンツ情報 - * @param {Selection} [aPage.selection] 選択オブジェクト - * @param {String} [apage.title] 現ページのタイトル - * @param {String} [aPage.url] 現ページURL - * @param {String} [aPage.image] 表示させたい画像URL - * @param {Array} aACLs ACL[] + * @param {Window} [aWindow] 現ページのWindowオブジェクト + * @param {String} [aImageURL] 表示させたい画像URL + * @param {Array} [aACLs] ACL[] */ function PostData () { this.init.apply(this, arguments); } PostData.sequence = 0; |