maccman/spine — Issue #197: Call to save second time when using ajax is giving error
Author: mailaneel
Created: 2012-02-03 09:26:59+00:00
State: open

```javascript
window.Product = Spine.Model.sub();
Product.configure("Product", "name","isActive");
Product.extend(Spine.Model.Ajax);
var m1 = new Product({
name: "Anil Gullapalli",
isActive: true
});
m1.save();
m1.name = "asd";
m1.save();
```
Above code is giving

```javascript

TypeError: Cannot call method 'load' of undefined

TypeError: Cannot call method 'load' of undefined
at result.update (http://localhost/wslui/project/common/js/vendor/spine/spine.js:487:24)
at result.save (http://localhost/wslui/project/common/js/vendor/spine/spine.js:412:54)
at [object Object].activateAllMembers (http://localhost/wslui/project/web/init.js:58:20)
at [object Object]. (eval at Cb (http://code.angularjs.org/angular-0.9.18.min.js:20:304))
at http://code.angularjs.org/angular-0.9.18.min.js:33:455
at [object Object]. (http://code.angularjs.org/angular-0.9.18.min.js:20:477)
at [object Object].$tryEval (http://code.angularjs.org/angular-0.9.18.min.js:21:492)
at
at
at
E.logangular-0.9.18.min.js:99
s.$tryEvalangular-0.9.18.min.js:22
dangular-0.9.18.min.js:109
f.event.dispatchjquery-1.7.1.min.js:3
f.event.add.h.handle.i
```