Commit 01ca4334 by Prem Sichanugrist

Use existential operator

parent ed69957f
...@@ -135,7 +135,7 @@ class @VideoPlayer ...@@ -135,7 +135,7 @@ class @VideoPlayer
@video.speed @video.speed
volume: (value) -> volume: (value) ->
if value != undefined if value?
@player.setVolume value @player.setVolume value
else else
@player.getVolume() @player.getVolume()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment