From 9a9c7ba49b75d54792373ff4bb0b69ae30fe5568 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 18 Nov 2008 22:28:00 +0000 Subject: 冗長なコードを変更 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24204 d0d07461-0603-4401-acd4-de1884942a52 --- nicontroller.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'nicontroller.js') diff --git a/nicontroller.js b/nicontroller.js index e618bb5..7db69b4 100644 --- a/nicontroller.js +++ b/nicontroller.js @@ -4,7 +4,7 @@ * @description this script give you keyboard opration for nicovideo.jp. * @description-ja ニコニコ動画のプレーヤーをキーボードで操作できるようにする。 * @author janus_wel - * @version 0.54 + * @version 0.55 * @minversion 2.0pre 2008/10/16 * ==/VimperatorPlugin== * @@ -186,7 +186,7 @@ NicoPlayerController.prototype = { }, constants: { - VERSION: '0.53', + VERSION: '0.55', CARDINAL_NUMBER: 10, @@ -268,9 +268,7 @@ NicoPlayerController.prototype = { let flvplayer = window.content.document.getElementById(this.constants.FLVPLAYER_NODE_ID); if(! flvplayer) throw new Error('flvplayer is not found'); - return flvplayer.wrappedJSObject - ? flvplayer.wrappedJSObject - : flvplayer ? flvplayer : null; + return flvplayer.wrappedJSObject || flvplayer; } return null; }, -- cgit v1.2.3