OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. | 4 found in the LICENSE file. |
5 --> | 5 --> |
6 | 6 |
7 <polymer-element name="ct-commit-data" attributes="first last data"> | 7 <polymer-element name="ct-commit-data" attributes="first last data"> |
8 <script> | 8 <script> |
9 Polymer({ | 9 Polymer({ |
10 data: [], | 10 data: [], |
11 first: 0, | 11 first: 0, |
12 last: 0, | 12 last: 0, |
13 | 13 |
14 firstChanged: function() { | 14 firstChanged: function() { |
15 this.update_(); | 15 this._update(); |
16 }, | 16 }, |
17 | 17 |
18 lastChanged: function() { | 18 lastChanged: function() { |
19 this.update_(); | 19 this._update(); |
20 }, | 20 }, |
21 | 21 |
22 update_: function() { | 22 _update: function() { |
23 this.data = model.commitDataListForRevisionRange(this.first, this.last); | 23 this.data = model.commitDataListForRevisionRange(this.first, this.last); |
24 }, | 24 }, |
25 }); | 25 }); |
26 </script> | 26 </script> |
27 </polymer-element> | 27 </polymer-element> |
OLD | NEW |