Merge pull request #1071 from husio/toJSON
JSON.stringify(m.prop(x)) use x.toJSON method when possible
This commit is contained in:
commit
6fe960ee8a
2 changed files with 17 additions and 0 deletions
|
|
@ -1352,6 +1352,7 @@
|
|||
}
|
||||
|
||||
prop.toJSON = function () {
|
||||
if (store && isFunction(store.toJSON)) return store.toJSON()
|
||||
return store
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue