OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 Polymer({ | 5 Polymer({ |
6 is: 'history-list', | 6 is: 'history-list', |
7 | 7 |
8 properties: { | 8 properties: { |
9 // The search term for the current query. Set when the query returns. | 9 // The search term for the current query. Set when the query returns. |
10 searchedTerm: { | 10 searchedTerm: { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 * @return {boolean} | 237 * @return {boolean} |
238 * @private | 238 * @private |
239 */ | 239 */ |
240 isCardEnd_: function(item, i, length) { | 240 isCardEnd_: function(item, i, length) { |
241 if (length == 0 || i > length - 1) | 241 if (length == 0 || i > length - 1) |
242 return false; | 242 return false; |
243 return i == length - 1 || | 243 return i == length - 1 || |
244 this.historyData_[i].dateRelativeDay != | 244 this.historyData_[i].dateRelativeDay != |
245 this.historyData_[i + 1].dateRelativeDay; | 245 this.historyData_[i + 1].dateRelativeDay; |
246 }, | 246 }, |
| 247 |
| 248 /** |
| 249 * @param {number} index |
| 250 * @return {boolean} |
| 251 * @private |
| 252 */ |
| 253 isFirstItem_: function(index) { |
| 254 return index == 0; |
| 255 } |
247 }); | 256 }); |
OLD | NEW |