From 347e71af7d69dd3be0c5df036a95e2130e062b26 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Sun, 10 Apr 2016 13:24:41 -0700 Subject: [PATCH] chore(travis): enable the typescript@next build Fixes #7050 --- .travis.yml | 2 -- modules/angular2/src/http/backends/mock_backend.ts | 2 +- modules/angular2/src/platform/server/parse5_adapter.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index f31ef0d7d6..75cd5ff784 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,8 +64,6 @@ matrix: allow_failures: - env: "MODE=saucelabs_optional" - env: "MODE=browserstack_optional" - # Tracked in https://github.com/angular/angular/issues/7050 - - env: "MODE=typescript_next" addons: firefox: "38.0" diff --git a/modules/angular2/src/http/backends/mock_backend.ts b/modules/angular2/src/http/backends/mock_backend.ts index 385776ca24..91021359b2 100644 --- a/modules/angular2/src/http/backends/mock_backend.ts +++ b/modules/angular2/src/http/backends/mock_backend.ts @@ -35,7 +35,7 @@ export class MockConnection implements Connection { response: ReplaySubject; constructor(req: Request) { - this.response = take.call(new ReplaySubject(1), 1); + this.response = take.call(new ReplaySubject(1), 1); this.readyState = ReadyState.Open; this.request = req; } diff --git a/modules/angular2/src/platform/server/parse5_adapter.ts b/modules/angular2/src/platform/server/parse5_adapter.ts index 1d9e776229..3894c3cd87 100644 --- a/modules/angular2/src/platform/server/parse5_adapter.ts +++ b/modules/angular2/src/platform/server/parse5_adapter.ts @@ -159,7 +159,7 @@ export class Parse5DomAdapter extends DomAdapter { var evt = { type: eventType, defaultPrevented: false, - preventDefault: () => { evt.defaultPrevented = true; } + preventDefault: () => { (evt).defaultPrevented = true; } }; return evt; }