mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
refactor(nav-viewport): remove ItemCreator
This commit is contained in:
@ -85,19 +85,6 @@ export class NavViewport {
|
||||
|
||||
}
|
||||
|
||||
class ItemCreator {
|
||||
constructor() {
|
||||
this._array = []
|
||||
}
|
||||
instantiate(navItem) {
|
||||
this._array.push(navItem)
|
||||
return navItem.waitForSetup()
|
||||
}
|
||||
destroy(navItem) {
|
||||
return arrayUtil.remove(this._array, navItem)
|
||||
}
|
||||
}
|
||||
|
||||
class NavItem {
|
||||
constructor(ComponentClass) {
|
||||
this.Class = ComponentClass
|
||||
|
Reference in New Issue
Block a user