Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

$.Model.static.convert() used with $.Model.prototype.restore() re-converts existing converted attr values

$
0
0
JMVC 3.2.4

Hello there,

When I model.restore() on a model that makes use of $.Model.static.convert() the model attrs are converted again which is producing unexpected results.

Has anyone come across this before? My colleague has augmented the interface to $.Model.prototype.restore()  to handle an extra "convert" parameter. If "convert" is false then the attr() method will prevent conversion. We'd be happy to create a pull request or the like if a fix is needed.

Many thanks
Chris

Viewing all articles
Browse latest Browse all 3491

Trending Articles