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