Use existential operator

This commit is contained in:
Prem Sichanugrist
2012-06-14 12:16:29 -04:00
committed by Matthew Mongeau
parent e9ce333999
commit 8dc28549c2

View File

@@ -135,7 +135,7 @@ class @VideoPlayer
@video.speed
volume: (value) ->
if value != undefined
if value?
@player.setVolume value
else
@player.getVolume()