mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user