* Remove subview. * @param {View} view View to be removed from subviews. * @return {View} Fluent interface
(view)
| 205 | * @return {View} Fluent interface |
| 206 | */ |
| 207 | removeSubview (view) { |
| 208 | const index = this._subviews.indexOf(view) |
| 209 | if (index !== -1) { |
| 210 | this._subviews.splice(index, 1) |
| 211 | view.setSuperview(null) |
| 212 | this.removeSubviewElement(view) |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | /** |
| 217 | * Removes previously added subview element from own DOM structure. |
no test coverage detected