fix(dart): The Traceur dart transpiler doesn't support shorthand syntax.
This commit is contained in:
parent
aca4604879
commit
54a4e4a67c
|
@ -2,7 +2,7 @@ import {ddescribe, describe, it, iit, expect, beforeEach} from 'angular2/test_li
|
|||
import {Directive, onChange} from 'angular2/src/core/annotations/annotations';
|
||||
|
||||
class DummyDirective extends Directive {
|
||||
constructor({lifecycle = []} = {}) { super({lifecycle}); }
|
||||
constructor({lifecycle = []} = {}) { super({lifecycle: lifecycle}); }
|
||||
}
|
||||
|
||||
export function main() {
|
||||
|
|
|
@ -14,7 +14,9 @@ import {LightDom, DestinationLightDom} from 'angular2/src/core/compiler/shadow_d
|
|||
import {Directive} from 'angular2/src/core/annotations/annotations';
|
||||
import {BindingPropagationConfig} from 'angular2/change_detection';
|
||||
|
||||
class DummyDirective extends Directive { constructor({lifecycle}) { super({lifecycle}); } }
|
||||
class DummyDirective extends Directive {
|
||||
constructor({lifecycle = []} = {}) { super({lifecycle: lifecycle}); }
|
||||
}
|
||||
|
||||
@proxy
|
||||
@IMPLEMENTS(View)
|
||||
|
|
|
@ -18,7 +18,7 @@ import {EventManager, DomEventsPlugin} from 'angular2/src/core/events/event_mana
|
|||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
|
||||
class DummyDirective extends Directive {
|
||||
constructor({lifecycle = []}) { super({lifecycle}); }
|
||||
constructor({lifecycle = []} = {}) { super({lifecycle: lifecycle}); }
|
||||
}
|
||||
|
||||
@proxy
|
||||
|
|
Loading…
Reference in New Issue