Skip to content

Commit

Permalink
Merge branch 'dev-master' of github.com:yui/yui3 into dt-2531914
Browse files Browse the repository at this point in the history
  • Loading branch information
apipkin committed Jan 11, 2013
2 parents d54cb6f + 399a310 commit dc39335
Show file tree
Hide file tree
Showing 53 changed files with 1,057 additions and 216 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -15,3 +15,5 @@ install:
- ./src/common/travis/install.sh - ./src/common/travis/install.sh
script: script:
- ./src/common/travis/test.sh - ./src/common/travis/test.sh
git:
depth: 30
194 changes: 100 additions & 94 deletions build/attribute-core/attribute-core-coverage.js

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions build/attribute-core/attribute-core-debug.js
Expand Up @@ -779,8 +779,13 @@ YUI.add('attribute-core', function (Y, NAME) {
retVal = setter.call(host, newVal, name, opts); retVal = setter.call(host, newVal, name, opts);


if (retVal === INVALID_VALUE) { if (retVal === INVALID_VALUE) {
Y.log('Attribute: ' + attrName + ', setter returned Attribute.INVALID_VALUE for value:' + newVal, 'warn', 'attribute'); if (initializing) {
allowSet = false; Y.log('Attribute: ' + attrName + ', setter returned Attribute.INVALID_VALUE for value:' + newVal + ', initializing to default value', 'warn', 'attribute');
newVal = cfg.defaultValue;
} else {
Y.log('Attribute: ' + attrName + ', setter returned Attribute.INVALID_VALUE for value:' + newVal, 'warn', 'attribute');
allowSet = false;
}
} else if (retVal !== undefined){ } else if (retVal !== undefined){
Y.log('Attribute: ' + attrName + ', raw value: ' + newVal + ' modified by setter to:' + retVal, 'info', 'attribute'); Y.log('Attribute: ' + attrName + ', raw value: ' + newVal + ' modified by setter to:' + retVal, 'info', 'attribute');
newVal = retVal; newVal = retVal;
Expand Down
2 changes: 1 addition & 1 deletion build/attribute-core/attribute-core-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion build/attribute-core/attribute-core.js
Expand Up @@ -772,7 +772,11 @@ YUI.add('attribute-core', function (Y, NAME) {
retVal = setter.call(host, newVal, name, opts); retVal = setter.call(host, newVal, name, opts);


if (retVal === INVALID_VALUE) { if (retVal === INVALID_VALUE) {
allowSet = false; if (initializing) {
newVal = cfg.defaultValue;
} else {
allowSet = false;
}
} else if (retVal !== undefined){ } else if (retVal !== undefined){
newVal = retVal; newVal = retVal;
} }
Expand Down

0 comments on commit dc39335

Please sign in to comment.