Use existential operator

This commit is contained in:
Prem Sichanugrist
2012-06-14 12:16:29 -04:00
committed by Matthew Mongeau
parent 6ba19953de
commit 432a8e5fd8

View File

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