Commit 432a8e5f by Prem Sichanugrist Committed by Matthew Mongeau

Use existential operator

parent 6ba19953
...@@ -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