MCPcopy Create free account
hub / github.com/cryptii/cryptii / removeSubview

Method removeSubview

src/View.js:207–214  ·  view source on GitHub ↗

* Remove subview. * @param {View} view View to be removed from subviews. * @return {View} Fluent interface

(view)

Source from the content-addressed store, hash-verified

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.

Callers 2

spliceBricksMethod · 0.80
removeFromSuperviewMethod · 0.80

Calls 3

removeSubviewElementMethod · 0.95
indexOfMethod · 0.80
setSuperviewMethod · 0.80

Tested by

no test coverage detected