kissyteam/kissy — Issue #96: values should not be set if any validator occurs error
Author: yiminghe
Created: 2012-02-09 10:00:57+00:00
State: open

```javascript
function X(){}
S.extend(X,S.Base);
X.ATTRS={
a:{
validator:function(v){
return v>1;
}
}}
var x=new X(),
r=x.set({
a:0,b:1;
});
expect(r).toBe(false);
expect(a.get(a)).not.toBe(0);
expect(a.get(b)).not.toBe(1);
```

a 出错了，那么 b 也不要设置，防止污染数据