mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
697257670c
commit
02ae9ec81e
123 changed files with 13600 additions and 531 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "iron-validatable-behavior",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"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.2",
|
||||
"_release": "1.0.3",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.0.2",
|
||||
"commit": "a4fc340fdb268e274f312dadedd0633b025ac3a4"
|
||||
"tag": "v1.0.3",
|
||||
"commit": "714ac9f09f9d7d5f6f792a38bb15970adaacb264"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/iron-validatable-behavior.git",
|
||||
"_target": "^1.0.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "iron-validatable-behavior",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"description": "Provides a behavior for an element that validates user input",
|
||||
"authors": "The Polymer Authors",
|
||||
"keywords": [
|
||||
|
|
|
@ -91,7 +91,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
* @return {boolean} True if `values` is valid.
|
||||
*/
|
||||
validate: function(values) {
|
||||
var valid = this._validator && this._validator.validate(values);
|
||||
var valid = true;
|
||||
if (this.hasValidator()) {
|
||||
valid = this._validator.validate(values);
|
||||
}
|
||||
|
||||
this.invalid = !valid;
|
||||
return valid;
|
||||
}
|
||||
|
|
|
@ -45,6 +45,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
assert.isFalse(node.hasAttribute('aria-invalid'), 'aria-invalid is unset');
|
||||
});
|
||||
|
||||
test('validate() is true if a validator isn\'t set', function() {
|
||||
var node = fixture('basic');
|
||||
var valid = node.validate();
|
||||
assert.isTrue(valid);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue