Changeset 24964 for lang/javascript

Show
Ignore:
Timestamp:
11/26/08 19:46:11 (6 years ago)
Author:
anekos
Message:

Setter が値を返すように変更
その他

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/stella.js

    r24880 r24964  
    33// @description-ja ステータスラインに動画の再生時間などを表示する。 
    44// @license        Creative Commons Attribution-Share Alike 3.0 Unported 
    5 // @version        0.05 
     5// @version        0.06 
    66// @author         anekos (anekos@snca.net) 
    77// @minVersion     2.0pre 
     
    9292    return xhr; 
    9393  } 
     94 
    9495  function id (value) 
    9596    value; 
     
    166167      title: '', 
    167168      totalTime: '', 
    168       volume: '', 
    169       // auto setting => seek, seekRelative, playOrPause, turnUpDownVolume, maxVolume, fetch 
     169      volume: '' 
     170      // auto setting => fetch maxVolume playOrPause seek seekRelative turnUpDownVolume 
    170171    }, 
    171172 
     
    185186 
    186187    get currentTime () undefined, 
    187     set currentTime (value) void value, 
     188    set currentTime (value) value, 
    188189 
    189190    get fileExtension () '', 
     
    194195 
    195196    get muted () undefined, 
    196     set muted (value) undefined, 
     197    set muted (value) value, 
    197198 
    198199    get repeating () undefined, 
    199     set repeating (value) undefined, 
     200    set repeating (value) value, 
    200201 
    201202    get state () undefined, 
     
    208209 
    209210    get volume () undefined, 
    210     set volume (value) void value, 
     211    set volume (value) value, 
    211212 
    212213    fetch: function (filepath) 
     
    283284 
    284285    get currentTime () parseInt(this.player.getCurrentTime()), 
    285     set currentTime (value) this.player.seekTo(value), 
     286    set currentTime (value) (this.player.seekTo(value), value), 
    286287 
    287288    get fileExtension () '.mp4', 
     
    292293 
    293294    get muted () this.player.isMuted(), 
    294     set muted (value) (value ? this.player.mute() : this.player.unMute()), 
     295    set muted (value) ((value ? this.player.mute() : this.player.unMute()), value), 
    295296 
    296297    get player () 
     
    320321 
    321322    get volume () parseInt(this.player.getVolume()), 
    322     set volume (value) parseInt(this.player.setVolume(value)), 
     323    set volume (value) (this.player.setVolume(value), value), 
    323324 
    324325    play: function () this.player.playVideo(), 
     
    361362 
    362363    get comment () this.player.ext_isCommentVisible(), 
    363     set comment (value) this.player.ext_setCommentVisible(value), 
     364    set comment (value) (this.player.ext_setCommentVisible(value), value), 
    364365 
    365366    get currentTime () parseInt(this.player.ext_getPlayheadTime()), 
    366     set currentTime (value) this.player.ext_setPlayheadTime(value), 
     367    set currentTime (value) (this.player.ext_setPlayheadTime(value), value), 
    367368 
    368369    get fileExtension () '.flv', 
     
    373374 
    374375    get muted () this.player.ext_isMute(), 
    375     set muted (value) this.player.ext_setMute(value), 
     376    set muted (value) (this.player.ext_setMute(value), value), 
    376377 
    377378    get player () 
     
    380381 
    381382    get repeating () this.player.ext_isRepeat(), 
    382     set repeating (value) this.player.ext_setRepeat(value), 
     383    set repeating (value) (this.player.ext_setRepeat(value), value), 
    383384 
    384385    get state () { 
     
    401402 
    402403    get volume () parseInt(this.player.ext_getVolume()), 
    403     set volume (value) parseInt(this.player.ext_setVolume(value)), 
     404    set volume (value) (this.player.ext_setVolume(value), value), 
    404405 
    405406    fetch: function (filepath) { 
     
    566567 
    567568    get statusBarVisible () !this.statusBar.getAttribute('moz-collapsed', false), 
    568     set statusBarVisible (value) this.statusBar.setAttribute('moz-collapsed', !value), 
     569    set statusBarVisible (value) (this.statusBar.setAttribute('moz-collapsed', !value), value), 
    569570 
    570571    get where () (