diff options
author | anekos | 2013-04-15 19:26:56 +0900 |
---|---|---|
committer | anekos | 2013-04-15 19:26:56 +0900 |
commit | 0e04b9204af46ae55d47120394af7b669bc1d835 (patch) | |
tree | a74b23028888801fa0474db15904fac178fac03e /twittperator | |
parent | 596ae3e9f228d34891f8e52225205e78371b4828 (diff) | |
download | vimperator-plugins-0e04b9204af46ae55d47120394af7b669bc1d835.tar.bz2 |
twsidebar なおしたよ。
Diffstat (limited to 'twittperator')
-rw-r--r-- | twittperator/twsidebar.tw | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw index 191fc13..d8c2a79 100644 --- a/twittperator/twsidebar.tw +++ b/twittperator/twsidebar.tw @@ -122,11 +122,11 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () { function messageToXML (t) { XML.prettyPrinting = true; XML.ignoreWhitespace = true; - let xml; + let tweetXml; let sbWidth = getSidebarWindow().document.width; let richlistitemClasses = [className('tweet-panel'), className('tweet-' + t.type)]; let nameClass = className('item-name') + ' ' + (t.protected ? className('tweet-protected') : ''); - xml = + tweetXml = xml`<richlistitem id=${t.id} class=${richlistitemClasses.join(' ')} @@ -153,14 +153,14 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () { </vbox> </hbox> </richlistitem>`; - return xml; + return tweetXml; } - function xmlToDom(xml, xmlns) { + function xmlToDom(tweetXml, xmlns) { XML.prettyPrinting = true; XML.ignoreWhitespace = true; var doc = (new DOMParser).parseFromString( - '<root xmlns="' + xmlns + '">' + xml.toXMLString() + "</root>", + '<root xmlns="' + xmlns + '">' + tweetXml.toString() + "</root>", "application/xml"); var imported = document.importNode(doc.documentElement, true); var range = document.createRange(); |