diff options
author | anekos | 2009-01-20 19:02:33 +0000 |
---|---|---|
committer | anekos | 2009-01-20 19:02:33 +0000 |
commit | bf3096ab0b12475affbf4584f39f05fd729c2cb7 (patch) | |
tree | 852a98f8ec10ec7483e4991f04b259990cec64fb | |
parent | 6c8de4b15876f72b890e2ae76416b92eaaa44eea (diff) | |
download | vimperator-plugins-bf3096ab0b12475affbf4584f39f05fd729c2cb7.tar.bz2 |
関連動画のメニューが開くたびに増えていたのを修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28724 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | stella.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -39,7 +39,7 @@ let PLUGIN_INFO = <name lang="ja">すてら</name> <description>Show video informations on the status line.</description> <description lang="ja">ステータスラインに動画の再生時間などを表示する。</description> - <version>0.14</version> + <version>0.15</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <license>new BSD License (Please read the source code comments of this plugin)</license> <license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license> @@ -1469,6 +1469,9 @@ Thanks: let relmenu = document.getElementById('anekos-stela-relations-menupopup'); let rels = this.player.relations; + while (relmenu.firstChild) + relmenu.removeChild(relmenu.firstChild); + rels.forEach(function (rel) { let elem = document.createElement('menuitem'); let prefix = rel instanceof RelatedID ? 'ID: ' : |