mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): clean up unused references
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, Directive, ElementRef, forwardRef, Inject, Optional, QueryList, ViewEncapsulation } from '@angular/core';
|
||||
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, Directive, ElementRef, Optional, QueryList, ViewEncapsulation } from '@angular/core';
|
||||
|
||||
import { Config } from '../../config/config';
|
||||
import { Ion } from '../ion';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { forwardRef } from '@angular/core';
|
||||
import { CORE_DIRECTIVES, FORM_DIRECTIVES } from '@angular/common';
|
||||
|
||||
import { Menu } from '../components/menu/menu';
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import {EventEmitter, NgZone} from '@angular/core';
|
||||
|
||||
import {Config} from '../config/config';
|
||||
import {getQuerystring} from '../util/util';
|
||||
import {ready, windowDimensions, flushDimensionCache} from '../util/dom';
|
||||
|
||||
@@ -322,7 +321,7 @@ export class Platform {
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
backButton: EventEmitter<Event> = new EventEmitter();
|
||||
backButton: EventEmitter<Event> = new EventEmitter<Event>();
|
||||
|
||||
/**
|
||||
* The pause event emits when the native platform puts the application
|
||||
@@ -330,14 +329,14 @@ export class Platform {
|
||||
* application. This event would emit when a Cordova app is put into
|
||||
* the background, however, it would not fire on a standard web browser.
|
||||
*/
|
||||
pause: EventEmitter<Event> = new EventEmitter();
|
||||
pause: EventEmitter<Event> = new EventEmitter<Event>();
|
||||
|
||||
/**
|
||||
* The resume event emits when the native platform pulls the application
|
||||
* out from the background. This event would emit when a Cordova app comes
|
||||
* out from the background, however, it would not fire on a standard web browser.
|
||||
*/
|
||||
resume: EventEmitter<Event> = new EventEmitter();
|
||||
resume: EventEmitter<Event> = new EventEmitter<Event>();
|
||||
|
||||
/**
|
||||
* The back button event is triggered when the user presses the native
|
||||
@@ -602,7 +601,7 @@ export class Platform {
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
load(config: Config) {
|
||||
load() {
|
||||
let rootPlatformNode: PlatformNode;
|
||||
let enginePlatformNode: PlatformNode;
|
||||
let self = this;
|
||||
@@ -665,7 +664,7 @@ export class Platform {
|
||||
|
||||
platformNode = rootPlatformNode;
|
||||
while (platformNode) {
|
||||
platformNode.initialize(this, config);
|
||||
platformNode.initialize(this);
|
||||
|
||||
// set the array of active platforms with
|
||||
// the last one in the array the most important
|
||||
@@ -752,8 +751,8 @@ class PlatformNode {
|
||||
return this.c.isMatch && this.c.isMatch(p) || false;
|
||||
}
|
||||
|
||||
initialize(platform: Platform, config: Config) {
|
||||
this.c.initialize && this.c.initialize(platform, config);
|
||||
initialize(platform: Platform) {
|
||||
this.c.initialize && this.c.initialize(platform);
|
||||
}
|
||||
|
||||
version(p: Platform): PlatformVersion {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import {Platform} from './platform';
|
||||
import {Config} from '../config/config';
|
||||
import {windowLoad} from '../util/dom';
|
||||
|
||||
const win: any = window;
|
||||
@@ -163,7 +162,7 @@ Platform.register({
|
||||
Platform.register({
|
||||
name: 'cordova',
|
||||
isEngine: true,
|
||||
initialize: function(p: Platform, config: Config) {
|
||||
initialize: function(p: Platform) {
|
||||
|
||||
// prepare a custom "ready" for cordova "deviceready"
|
||||
p.prepareReady = function() {
|
||||
|
||||
Reference in New Issue
Block a user