Permalink
Browse files

removed unnecessary allowset=true

  • Loading branch information...
1 parent e2057d6 commit c94b9acbc642fe20521c823c49cc8900da800c68 @redbat committed Nov 14, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/attribute/js/Attribute.js
@@ -754,8 +754,7 @@
if (retVal === INVALID_VALUE && initializing) {
Y.log('Attribute: ' + attrName + ', setter returned Attribute.INVALID_VALUE for value:' + newVal
+ ', initializing to default value', 'warn', 'attribute');
- newVal = state.get(attrName, DEF_VALUE);
- allowSet = true;
+ newVal = state.get(attrName, DEF_VALUE);
} else if (retVal === INVALID_VALUE) {
Y.log('Attribute: ' + attrName + ', setter returned Attribute.INVALID_VALUE for value:' + newVal, 'warn', 'attribute');
allowSet = false;

0 comments on commit c94b9ac

Please sign in to comment.