AmpersandJS / ampersand-sync

Provides sync behavior for updating data from ampersand models and collections to the server.
http://ampersandjs.com
MIT License
20 stars 28 forks source link

Use the last argument of lodash.result for the ajaxConfig fallback value #78

Closed dhritzkiv closed 7 years ago

dhritzkiv commented 7 years ago

lodash's result method takes a third argument which is a fallback value to use in case model.ajaxConfig doesn't resolve.

Also remove extra line break

fyockm commented 7 years ago

:+1:

cdaringe commented 7 years ago

+1