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

Using Setters To Reject/Prevent Changes

$
0
0
In our Boston meet-up yesterday a question came up about how to prevent changes when the change is invalid or doesn't meet a condition.

My solution was to use a setter, but I am interested to hear how others would approach this.


This solution stops the attribute from being changed which obviously will prevent any change events. 

Viewing all articles
Browse latest Browse all 3491

Trending Articles