Use existential operator
This commit is contained in:
committed by
Matthew Mongeau
parent
6ba19953de
commit
432a8e5fd8
@@ -135,7 +135,7 @@ class @VideoPlayer
|
||||
@video.speed
|
||||
|
||||
volume: (value) ->
|
||||
if value != undefined
|
||||
if value?
|
||||
@player.setVolume value
|
||||
else
|
||||
@player.getVolume()
|
||||
|
||||
Reference in New Issue
Block a user