backbone-dotattr icon indicating copy to clipboard operation
backbone-dotattr copied to clipboard

Preventing non-existent attribute names from throwing JS errors

Open Anks opened this issue 12 years ago • 1 comments

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.

Anks avatar Nov 16 '12 08:11 Anks

But yeah +1 for this functionality.

phawk avatar Dec 09 '13 16:12 phawk