Possible Duplicate:
What does “options = options || {}” mean in Javascript?
Looking at the YouTube source...
var yt = yt || {};
Does that mean.. set yt
to yt
if yt
exists, else create a new object?
If that's the case, I didn't think you can put a condition when declaring a variable.