mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
Revert "decorator lyfe"
This reverts commit 63b5b19e1206d0f377237d2fa4fd54d17cda9436.
This commit is contained in:
@ -1,24 +1,22 @@
|
||||
import {Component, ComponentAnnotation, Directive} from 'angular2/angular2';
|
||||
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {DirectiveMetadata} from 'angular2/src/render/api';
|
||||
|
||||
import * as util from 'ionic/util';
|
||||
import {Platform} from 'ionic/platform/platform';
|
||||
import {GlobalIonicConfig} from '../components/app/app';
|
||||
|
||||
|
||||
export class IonicDirective extends Directive {
|
||||
constructor(ComponentType) {
|
||||
super( appendModeConfig(ComponentType) );
|
||||
}
|
||||
}
|
||||
|
||||
export let IonicComponent = (function(){
|
||||
function IonicComponentFactory(ComponentClass) {
|
||||
return new Component(appendModeConfig(ComponentClass));
|
||||
export class IonicComponent extends Component {
|
||||
constructor(ComponentType) {
|
||||
super( appendModeConfig(ComponentType) );
|
||||
}
|
||||
IonicComponentFactory.prototype = Object.create(ComponentAnnotation.prototype);
|
||||
return IonicComponentFactory;
|
||||
})();
|
||||
|
||||
}
|
||||
|
||||
function appendModeConfig(ComponentType) {
|
||||
let config = ComponentType.config;
|
||||
|
Reference in New Issue
Block a user