aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stella.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/stella.js b/stella.js
index a70111a..2575d80 100644
--- a/stella.js
+++ b/stella.js
@@ -39,7 +39,7 @@ let PLUGIN_INFO =
<name lang="ja">すてら</name>
<description>For Niconico/YouTube/Vimeo, Add control commands and information display(on status line).</description>
<description lang="ja">ニコニコ動画/YouTube/Vimeo 用。操作コマンドと情報表示(ステータスライン上に)追加します。</description>
- <version>0.32.5</version>
+ <version>0.32.6</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>
@@ -1859,7 +1859,11 @@ Thanks:
function setEvents (name, elem) {
['click', 'command', 'popupshowing'].forEach(function (eventName) {
- let onEvent = self['on' + U.capitalize(name) + U.capitalize(eventName)];
+ let onEvent = self[
+ 'on' +
+ U.capitalize(name) +
+ U.capitalize(eventName == 'command' ? 'click' : eventName)
+ ];
onEvent && elem.addEventListener(eventName, function (event) {
if (eventName == 'click' && event.button != 0)
return;