From 75aa009438b9a5d6bca694d61b9a378b62bb7cc9 Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 9 Feb 2011 02:09:27 +0900 Subject: おい!反応がないぞ! Thanks, wlt_lain sama! http://twitter.com/wlt_lain/status/35019901919965184 --- stella.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'stella.js') 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 = すてら For Niconico/YouTube/Vimeo, Add control commands and information display(on status line). ニコニコ動画/YouTube/Vimeo 用。操作コマンドと情報表示(ステータスライン上に)追加します。 - 0.32.5 + 0.32.6 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -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; -- cgit v1.2.3