canjs / can-fixture

Intercept and simulate AJAX requests. Works without CanJS.

Home Page:https://canjs.com/doc/can-fixture.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Updating doesn't work well with typed properties

matthewp opened this issue · comments

Having something like:

var Pet = DefineMap.extend("Pet", {
  name: "string"
});

var Person = DefineMap.extend("Person", {
  pet: {
    Type: Pet
  }
});

Does not work when updating. This is because Person will be a typed object with pet of type Pet and then gets JSON.stringified.