Skip to content

Commit

Permalink
Merge branch 'master' of github.com:laoshanlung/backbone.supermodel
Browse files Browse the repository at this point in the history
  • Loading branch information
tanqhnguyen committed Apr 14, 2014
2 parents 7ca97a0 + 13028dd commit ab265a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backbone.supermodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ Backbone.SuperModel = (function(_, Backbone){
},

get: function(attr) {
var nestedAttrs = attr.split('.');
var nestedAttrs = attr ? attr.split('.') : [];

if (nestedAttrs.length > 1) {
var nestedAttr = this.attributes[_.first(nestedAttrs)];
Expand Down

0 comments on commit ab265a2

Please sign in to comment.