From bf3096ab0b12475affbf4584f39f05fd729c2cb7 Mon Sep 17 00:00:00 2001
From: anekos
Date: Tue, 20 Jan 2009 19:02:33 +0000
Subject: 関連動画のメニューが開くたびに増えていたのを修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28724 d0d07461-0603-4401-acd4-de1884942a52
---
stella.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/stella.js b/stella.js
index 904582e..08f73cb 100644
--- a/stella.js
+++ b/stella.js
@@ -39,7 +39,7 @@ let PLUGIN_INFO =
すてら
Show video informations on the status line.
ステータスラインに動画の再生時間などを表示する。
- 0.14
+ 0.15
anekos
new BSD License (Please read the source code comments of this plugin)
修正BSDライセンス (ソースコードのコメントを参照してください)
@@ -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: ' :
--
cgit v1.2.3