diff options
author | anekos | 2008-11-18 22:28:00 +0000 |
---|---|---|
committer | anekos | 2008-11-18 22:28:00 +0000 |
commit | 9a9c7ba49b75d54792373ff4bb0b69ae30fe5568 (patch) | |
tree | 898114b452e72af7d3f8ac447e40804832cd9cfa /nicontroller.js | |
parent | 4245afeff4c224b32462dd85e45882d9d4afd03c (diff) | |
download | vimperator-plugins-9a9c7ba49b75d54792373ff4bb0b69ae30fe5568.tar.bz2 |
冗長なコードを変更
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24204 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'nicontroller.js')
-rw-r--r-- | nicontroller.js | 8 |
1 files changed, 3 insertions, 5 deletions
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 <janus_wel@fb3.so-net.ne.jp>
- * @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;
},
|