| OLD | NEW |
| 1 // | 1 // |
| 2 // Copyright 2014 Google Inc. All rights reserved. | 2 // Copyright 2014 Google Inc. All rights reserved. |
| 3 // | 3 // |
| 4 // Use of this source code is governed by a BSD-style | 4 // Use of this source code is governed by a BSD-style |
| 5 // license that can be found in the LICENSE file or at | 5 // license that can be found in the LICENSE file or at |
| 6 // https://developers.google.com/open-source/licenses/bsd | 6 // https://developers.google.com/open-source/licenses/bsd |
| 7 // | 7 // |
| 8 | 8 |
| 9 part of charted.charts; | 9 part of charted.charts; |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 _measures = value; | 36 _measures = value; |
| 37 | 37 |
| 38 if (_measures is ObservableList) { | 38 if (_measures is ObservableList) { |
| 39 _disposer.add( | 39 _disposer.add( |
| 40 (_measures as ObservableList).listChanges.listen(_measuresChanged)); | 40 (_measures as ObservableList).listChanges.listen(_measuresChanged)); |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 | 43 |
| 44 Iterable<int> get measures => _measures; | 44 Iterable<int> get measures => _measures; |
| 45 | 45 |
| 46 set measureAxisIds(Iterable<String> value) => _measureAxisIds = value; | 46 set measureAxisIds(Iterable<String> value) { |
| 47 _measureAxisIds = value; |
| 48 } |
| 49 |
| 47 Iterable<String> get measureAxisIds => _measureAxisIds; | 50 Iterable<String> get measureAxisIds => _measureAxisIds; |
| 48 | 51 |
| 49 _measuresChanged(_) { | 52 void _measuresChanged(List<ListChangeRecord> _) { |
| 50 if (_measures is! ObservableList) return; | 53 if (_measures is! ObservableList) return; |
| 51 notifyChange(new ChartSeriesChangeRecord(this)); | 54 notifyChange(new ChartSeriesChangeRecord(this)); |
| 52 } | 55 } |
| 53 } | 56 } |
| OLD | NEW |