update globalize

This commit is contained in:
Luke Pulverenti
2015-08-05 21:21:18 -04:00
parent 3d3df5717d
commit 7fb95d0419
21 changed files with 142 additions and 90 deletions
@@ -1,6 +1,6 @@
{
"name": "iron-validatable-behavior",
"version": "1.0.3",
"version": "1.0.4",
"description": "Provides a behavior for an element that validates user input",
"authors": "The Polymer Authors",
"keywords": [
@@ -32,11 +32,11 @@
"web-component-tester": "*",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"_release": "1.0.3",
"_release": "1.0.4",
"_resolution": {
"type": "version",
"tag": "v1.0.3",
"commit": "714ac9f09f9d7d5f6f792a38bb15970adaacb264"
"tag": "v1.0.4",
"commit": "ff267b561b032608755d705c1a7e346454b0aee4"
},
"_source": "git://github.com/PolymerElements/iron-validatable-behavior.git",
"_target": "^1.0.0",
@@ -1,6 +1,6 @@
{
"name": "iron-validatable-behavior",
"version": "1.0.3",
"version": "1.0.4",
"description": "Provides a behavior for an element that validates user input",
"authors": "The Polymer Authors",
"keywords": [
@@ -16,7 +16,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
/**
* Use `Polymer.IronValidatableBehavior` to implement an element that validates user input.
*
* ### Accessiblity
* ### Accessibility
*
* Changing the `invalid` property, either manually or by calling `validate()` will update the
* `aria-invalid` attribute.
@@ -87,19 +87,35 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
},
/**
* @param {Object} values Passed to the validator's `validate()` function.
* @return {boolean} True if `values` is valid.
* Returns true if the `value` is valid, and updates `invalid`. If you want
* your element to have custom validation logic, do not override this method;
* override `_getValidity(value)` instead.
* @param {Object} value The value to be validated. By default, it is passed
* to the validator's `validate()` function, if a validator is set.
* @return {boolean} True if `value` is valid.
*/
validate: function(values) {
var valid = true;
validate: function(value) {
this.invalid = !this._getValidity(value);
return !this.invalid;
},
/**
* Returns true if `value` is valid. By default, it is passed
* to the validator's `validate()` function, if a validator is set. You
* should override this method if you want to implement custom validity
* logic for your element.
*
* @param {Object} value The value to be validated.
* @return {boolean} True if `value` is valid.
*/
_getValidity: function(value) {
if (this.hasValidator()) {
valid = this._validator.validate(values);
return this._validator.validate(value);
}
this.invalid = !valid;
return valid;
return true;
}
};
</script>