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

Unified Diff: third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js

Issue 1410143002: Update Polymer to fix closure compile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iron-list5
Patch Set: Created 5 years, 2 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: third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js b/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js
index 61d87450e24bc19d6ea14d64116cd8b55d173e6f..883a7ba7baf1813bc3bdad85f247b7c2fabdb83a 100644
--- a/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js
+++ b/third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js
@@ -30,8 +30,7 @@
/**
* The name of the variable to add to the binding scope with the index
- * for the row. If `sort` is provided, the index will reflect the
- * sorted order (rather than the original array order).
+ * for the row.
*/
indexAs: {
type: String,
@@ -244,8 +243,7 @@
* The largest n-th value for an item such that it can be rendered in `_physicalStart`.
*/
get _maxVirtualStart() {
- return this._virtualCount < this._physicalCount ?
- this._virtualCount : this._virtualCount - this._physicalCount;
+ return Math.max(0, this._virtualCount - this._physicalCount);
},
/**
@@ -298,7 +296,7 @@
},
/**
- * Gets the first visible item in the viewport.
+ * Gets the index of the first visible item in the viewport.
*
* @type {number}
*/
@@ -576,7 +574,7 @@
[].push.apply(this._physicalSizes, emptyArray);
this._physicalCount = prevPhysicalCount + delta;
-
+
return true;
},
@@ -757,7 +755,7 @@
/**
* Executes a provided function per every physical index in `itemSet`
* `itemSet` default value is equivalent to the entire set of physical indexes.
- *
+ *
* @param {!function(number, number)} fn
* @param {!Array<number>=} itemSet
*/
@@ -899,7 +897,7 @@
/**
* Sets the scroll height, that's the height of the content,
- *
+ *
* @param {boolean=} forceUpdate If true, updates the height no matter what.
*/
_updateScrollerSize: function(forceUpdate) {

Powered by Google App Engine
This is Rietveld 408576698