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
|
||||
|
||||
@ -37,7 +37,6 @@ export function transitionEndPromise(el:Element) {
|
||||
return new Promise(resolve => {
|
||||
css.transitionEnd.split(' ').forEach(eventName => {
|
||||
el.addEventListener(eventName, onTransitionEnd)
|
||||
console.log('eventListener', eventName, onTransitionEnd)
|
||||
})
|
||||
function onTransitionEnd(ev) {
|
||||
// Don't allow bubbled transitionend events
|
||||
|
||||
Reference in New Issue
Block a user