* Adds subview. * @param {View} view View to add as subview * @return {View} Fluent interface
(view)
| 166 | * @return {View} Fluent interface |
| 167 | */ |
| 168 | addSubview (view) { |
| 169 | // make sure view is detached |
| 170 | view.removeFromSuperview() |
| 171 | |
| 172 | // add view to subviews |
| 173 | this.appendSubviewElement(view) |
| 174 | view.setSuperview(this) |
| 175 | this._subviews.push(view) |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * Returns subviews. |
no test coverage detected