1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update shared components

This commit is contained in:
Luke Pulverenti 2016-05-17 13:44:17 -04:00
parent 30db5a009c
commit 489dc97aab
33 changed files with 368 additions and 212 deletions

View file

@ -1,6 +1,6 @@
{
"name": "iron-selector",
"version": "1.5.1",
"version": "1.5.2",
"description": "Manages a set of elements that can be selected",
"private": true,
"license": "http://polymer.github.io/LICENSE.txt",
@ -30,11 +30,11 @@
"web-component-tester": "^4.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"_release": "1.5.1",
"_release": "1.5.2",
"_resolution": {
"type": "version",
"tag": "v1.5.1",
"commit": "e3e34408fad8f7cde59c4255cf3fe90f7dcf91d8"
"tag": "v1.5.2",
"commit": "18e8e12dcd9a4560de480562f65935feed334b86"
},
"_source": "git://github.com/PolymerElements/iron-selector.git",
"_target": "^1.0.0",

View file

@ -1,6 +1,6 @@
{
"name": "iron-selector",
"version": "1.5.1",
"version": "1.5.2",
"description": "Manages a set of elements that can be selected",
"private": true,
"license": "http://polymer.github.io/LICENSE.txt",

View file

@ -38,8 +38,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
/**
* Fired when the list of selectable items changes (e.g., items are
* added or removed). The detail of the event is a list of mutation
* records that describe what changed.
* added or removed). The detail of the event is a mutation record that
* describes what changed.
*
* @event iron-items-changed
*/
@ -346,7 +346,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
// observe items change under the given node.
_observeItems: function(node) {
return Polymer.dom(node).observeNodes(function(mutations) {
return Polymer.dom(node).observeNodes(function(mutation) {
this._updateItems();
if (this._shouldUpdateSelection) {
@ -355,7 +355,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
// Let other interested parties know about the change so that
// we don't have to recreate mutation observers everywhere.
this.fire('iron-items-changed', mutations, {
this.fire('iron-items-changed', mutation, {
bubbles: false,
cancelable: false
});

View file

@ -196,8 +196,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
newItem.id = 'item999';
s2.addEventListener('iron-items-changed', function() {
s2.addEventListener('iron-items-changed', function(event) {
changeCount++;
var mutation = event.detail;
assert.notEqual(mutation, undefined);
assert.notEqual(mutation.addedNodes, undefined);
assert.notEqual(mutation.removedNodes, undefined);
});
Polymer.dom(s2).appendChild(newItem);