I'm trying to better understand BackboneJS by reading the annotated source.
options || (options = {});
Options is an attribute passed into a function, so presumably could be 'undefined'. My initial thoughts were that this statement would set options to an empty object if it was undefined. However my experimenting seemed to tell me this is not the case. Also, the previous line is this:
var attrs = attributes || {};
Which I believe does pretty much what I'd described (whilst also shortening the attribute name).
My question is, what is the actual purpose of the first code snippet?
Full context is here