chore(): clean up unused references

This commit is contained in:
Adam Bradley
2016-06-28 11:28:25 -05:00
parent 721b2bc4f0
commit 2fe42ed63e
4 changed files with 9 additions and 12 deletions

View File

@ -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 { Config } from '../../config/config';
import { Ion } from '../ion'; import { Ion } from '../ion';

View File

@ -1,4 +1,3 @@
import { forwardRef } from '@angular/core';
import { CORE_DIRECTIVES, FORM_DIRECTIVES } from '@angular/common'; import { CORE_DIRECTIVES, FORM_DIRECTIVES } from '@angular/common';
import { Menu } from '../components/menu/menu'; import { Menu } from '../components/menu/menu';

View File

@ -1,6 +1,5 @@
import {EventEmitter, NgZone} from '@angular/core'; import {EventEmitter, NgZone} from '@angular/core';
import {Config} from '../config/config';
import {getQuerystring} from '../util/util'; import {getQuerystring} from '../util/util';
import {ready, windowDimensions, flushDimensionCache} from '../util/dom'; import {ready, windowDimensions, flushDimensionCache} from '../util/dom';
@ -322,7 +321,7 @@ export class Platform {
/** /**
* @private * @private
*/ */
backButton: EventEmitter<Event> = new EventEmitter(); backButton: EventEmitter<Event> = new EventEmitter<Event>();
/** /**
* The pause event emits when the native platform puts the application * 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 * application. This event would emit when a Cordova app is put into
* the background, however, it would not fire on a standard web browser. * 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 * 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. This event would emit when a Cordova app comes
* out from the background, however, it would not fire on a standard web browser. * 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 * The back button event is triggered when the user presses the native
@ -602,7 +601,7 @@ export class Platform {
/** /**
* @private * @private
*/ */
load(config: Config) { load() {
let rootPlatformNode: PlatformNode; let rootPlatformNode: PlatformNode;
let enginePlatformNode: PlatformNode; let enginePlatformNode: PlatformNode;
let self = this; let self = this;
@ -665,7 +664,7 @@ export class Platform {
platformNode = rootPlatformNode; platformNode = rootPlatformNode;
while (platformNode) { while (platformNode) {
platformNode.initialize(this, config); platformNode.initialize(this);
// set the array of active platforms with // set the array of active platforms with
// the last one in the array the most important // the last one in the array the most important
@ -752,8 +751,8 @@ class PlatformNode {
return this.c.isMatch && this.c.isMatch(p) || false; return this.c.isMatch && this.c.isMatch(p) || false;
} }
initialize(platform: Platform, config: Config) { initialize(platform: Platform) {
this.c.initialize && this.c.initialize(platform, config); this.c.initialize && this.c.initialize(platform);
} }
version(p: Platform): PlatformVersion { version(p: Platform): PlatformVersion {

View File

@ -1,5 +1,4 @@
import {Platform} from './platform'; import {Platform} from './platform';
import {Config} from '../config/config';
import {windowLoad} from '../util/dom'; import {windowLoad} from '../util/dom';
const win: any = window; const win: any = window;
@ -163,7 +162,7 @@ Platform.register({
Platform.register({ Platform.register({
name: 'cordova', name: 'cordova',
isEngine: true, isEngine: true,
initialize: function(p: Platform, config: Config) { initialize: function(p: Platform) {
// prepare a custom "ready" for cordova "deviceready" // prepare a custom "ready" for cordova "deviceready"
p.prepareReady = function() { p.prepareReady = function() {