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.selection; | 9 part of charted.selection; |
10 | 10 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 * Appends a new element to [root] and creates a selection containing | 87 * Appends a new element to [root] and creates a selection containing |
88 * the newly added element. | 88 * the newly added element. |
89 */ | 89 */ |
90 Selection append(String tag) { | 90 Selection append(String tag) { |
91 var element = Namespace.createChildElement(tag, _root); | 91 var element = Namespace.createChildElement(tag, _root); |
92 root.children.add(element); | 92 root.children.add(element); |
93 | 93 |
94 return selectElements([element]); | 94 return selectElements([element]); |
95 } | 95 } |
96 } | 96 } |
OLD | NEW |