Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Unified Diff: polymer_1.2.3/bower_components/iron-selector/iron-multi-selectable.html

Issue 1581713003: [third_party] add polymer 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: 1.2.3 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: polymer_1.2.3/bower_components/iron-selector/iron-multi-selectable.html
diff --git a/polymer_1.0.4/bower_components/iron-selector/iron-multi-selectable.html b/polymer_1.2.3/bower_components/iron-selector/iron-multi-selectable.html
similarity index 92%
copy from polymer_1.0.4/bower_components/iron-selector/iron-multi-selectable.html
copy to polymer_1.2.3/bower_components/iron-selector/iron-multi-selectable.html
index ba9455ded233d8b00081e14c2bf00e16dab6959e..906e9204d739dc10c484a6e090c989afbdece8a3 100644
--- a/polymer_1.0.4/bower_components/iron-selector/iron-multi-selectable.html
+++ b/polymer_1.2.3/bower_components/iron-selector/iron-multi-selectable.html
@@ -72,6 +72,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
this._selection.multi = multi;
},
+ get _shouldUpdateSelection() {
+ return this.selected != null ||
+ (this.selectedValues != null && this.selectedValues.length);
+ },
+
_updateSelected: function() {
if (this.multi) {
this._selectMulti(this.selectedValues);
@@ -103,9 +108,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
var i = this.selectedValues.indexOf(value);
var unselected = i < 0;
if (unselected) {
- this.selectedValues.push(value);
+ this.push('selectedValues',value);
} else {
- this.selectedValues.splice(i, 1);
+ this.splice('selectedValues',i,1);
}
this._selection.setItemSelected(this._valueToItem(value), unselected);
}

Powered by Google App Engine
This is Rietveld 408576698