refactor(LifecycleEvent): change from onInit to Lifecycle.onInit

BREAKING CHANGE

Closes #2928
This commit is contained in:
Misko Hevery
2015-07-04 15:04:50 +02:00
committed by Tobias Bosch
parent e1e7912ab2
commit b73ba68215
31 changed files with 245 additions and 250 deletions
@@ -8,11 +8,7 @@ import 'package:angular2/angular2.dart'
Directive,
View,
NgElement,
onChange,
onDestroy,
onInit,
onCheck,
onAllChangesDone;
LifecycleEvent;
var _visited = false;
void initReflector(reflector) {
@@ -8,11 +8,7 @@ import 'package:angular2/angular2.dart'
Directive,
View,
NgElement,
onChange,
onDestroy,
onInit,
onCheck,
onAllChangesDone;
LifecycleEvent;
var _visited = false;
void initReflector(reflector) {
@@ -8,11 +8,7 @@ import 'package:angular2/angular2.dart'
Directive,
View,
NgElement,
onChange,
onDestroy,
onInit,
onCheck,
onAllChangesDone;
LifecycleEvent;
var _visited = false;
void initReflector(reflector) {
@@ -8,11 +8,7 @@ import 'package:angular2/angular2.dart'
Directive,
View,
NgElement,
onChange,
onDestroy,
onInit,
onCheck,
onAllChangesDone;
LifecycleEvent;
var _visited = false;
void initReflector(reflector) {
@@ -24,7 +20,8 @@ void initReflector(reflector) {
'parameters': const [const []],
'annotations': const [
const Component(
lifecycle: [onChange, onDestroy, onInit, onCheck, onAllChangesDone])
lifecycle: [LifecycleEvent.onChange, LifecycleEvent.onDestroy, LifecycleEvent.onInit,
LifecycleEvent.onCheck, LifecycleEvent.onAllChangesDone])
]
});
}