lib/assets/javascripts/backbone_extensions/associations.js in backbone_extensions-0.0.16 vs lib/assets/javascripts/backbone_extensions/associations.js in backbone_extensions-0.0.17

- old
+ new

@@ -107,10 +107,11 @@ (options.className && parseResponseWith(options.className, response)) || parseResponseWith(associationName, response); }; }, associationFn: function(assocResponse) { - associations[associationType].call(this, assocResponse, this[associationName](), mergeAssociationOptions(options, this._options)); + return assocResponse && + associations[associationType].call(this, assocResponse, this[associationName](), mergeAssociationOptions(options, this._options)); } }); } } }