remove onIonInit

Closes #77
This commit is contained in:
Adam Bradley
2015-09-05 23:09:21 -05:00
parent aefe8ad7a2
commit dc7b04fbd4
5 changed files with 10 additions and 6 deletions

View File

@ -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];
} }

View File

@ -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) {

View File

@ -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);

View File

@ -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);

View File

@ -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();