mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
@ -32,7 +32,8 @@ export class Content extends Ion {
|
||||
/**
|
||||
* TODO
|
||||
*/
|
||||
onIonInit() {
|
||||
onInit() {
|
||||
super.onInit();
|
||||
this.scrollElement = this.getNativeElement().children[0];
|
||||
}
|
||||
|
||||
|
@ -44,8 +44,6 @@ export class Ion {
|
||||
this[prop] = cls.defaultProperties[prop];
|
||||
}
|
||||
}
|
||||
|
||||
this.onIonInit && this.onIonInit();
|
||||
}
|
||||
|
||||
getDelegate(delegateName) {
|
||||
|
@ -40,7 +40,9 @@ export class List extends Ion {
|
||||
/**
|
||||
* TODO
|
||||
*/
|
||||
onIonInit() {
|
||||
onInit() {
|
||||
super.onInit();
|
||||
|
||||
if (util.isDefined(this.virtual)) {
|
||||
console.log('Content', this.content);
|
||||
console.log('Virtual?', this.virtual);
|
||||
|
@ -40,7 +40,8 @@ export class Nav extends ViewController {
|
||||
/**
|
||||
* TODO
|
||||
*/
|
||||
onIonInit() {
|
||||
onInit() {
|
||||
super.onInit();
|
||||
|
||||
if (this.root) {
|
||||
this.push(this.root);
|
||||
|
@ -135,7 +135,9 @@ export class Toolbar extends ToolbarBase {
|
||||
this.itemEles = [];
|
||||
}
|
||||
|
||||
onIonInit() {
|
||||
onInit() {
|
||||
super.onInit();
|
||||
|
||||
// TODO: THIS IS HORRIBLE, FIX
|
||||
setTimeout(() => {
|
||||
this.alignTitle();
|
||||
|
Reference in New Issue
Block a user