mode configs

Closes #61
This commit is contained in:
Adam Bradley
2015-08-23 22:39:46 -05:00
parent 0e2423cd4d
commit f9f3022f6a
8 changed files with 90 additions and 54 deletions

View File

@ -136,8 +136,10 @@ function initApp(window, document, config) {
Platform.navigatorPlatform(window.navigator.platform);
Platform.load(config);
// on resize be sure to clear out existing window dimensions
window.addEventListener('resize', Platform.winResize);
setTimeout(() => {
// start listening for resizes XXms after the app starts
window.addEventListener('resize', Platform.winResize);
}, 2000);
return app;
}

View File

@ -42,8 +42,8 @@ import {dom} from 'ionic/util'
})
export class Aside extends Ion {
constructor(elementRef: ElementRef, ionicConfig: IonicConfig) {
super(elementRef, ionicConfig);
constructor(elementRef: ElementRef, config: IonicConfig) {
super(elementRef, config);
this.opening = new EventEmitter('opening');
@ -133,8 +133,8 @@ export class Aside extends Ion {
template: ''
})
export class AsideBackdrop extends Ion {
constructor(elementRef: ElementRef, ionicConfig: IonicConfig, @Host() aside: Aside) {
super(elementRef, ionicConfig);
constructor(elementRef: ElementRef, config: IonicConfig, @Host() aside: Aside) {
super(elementRef, config);
aside.backdrop = this;

View File

@ -77,7 +77,7 @@ export class IconDirective {
this.ariaHidden = true;
if (forward !== null) {
this.fwdIcon = config.setting('forwardIcon');
this.iconFwd = config.setting('iconForward');
}
if (hostButton) {
@ -103,8 +103,8 @@ export class IconDirective {
}
onInit() {
if (this.fwdIcon) {
this.name = this.fwdIcon;
if (this.iconFwd) {
this.name = this.iconFwd;
}
if (!this.name) return;