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

Issue with models that have attributes with "." in their name.

$
0
0
Hi,

I have a model object that has a property called "uddi:com.test:status".
When I try to reset all of its attributes: this.attr({}, true), I get this error: TypeError: current is undefined from observe.js(line 633).

The reason for this is that at line 625 there's parts = attrParts(attr) which will split "uddi:com.test:status" into 2 strings ["uddi:com", "test:status"] and then try to access those properties which will be undefined.

How should I handle this case?

Thanks.

Viewing all articles
Browse latest Browse all 3491

Trending Articles