backbone-dotattr
backbone-dotattr copied to clipboard
Preventing non-existent attribute names from throwing JS errors
Backbone returns undefined
when you get
an attribute that's not
present in the model, and false
on calling has
. The same behaviour
should apply dot-attributes, too.
Tests are updated as well.
But yeah +1 for this functionality.