documentcloud/backbone — pull request #2024 by tgriesser (2012-12-26 06:55:46+00:00)
Title: Fix for #2017 - Check for object on save set

The set in the success handler shouldn't be tried if `serverAttrs` isn't an object - Brought up in #2017 when an empty string is returned as a success.

```js
if (!model.set(serverAttrs, options)) return false;
// becomes
// if (!model.set('', options)) return false;
```