X Tutup
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/angular2/src/facade/lang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ declare var Symbol;
var _symbolIterator = null;
export function getSymbolIterator(): string | symbol {
if (isBlank(_symbolIterator)) {
if (isPresent(Symbol) && isPresent(Symbol.iterator)) {
if (isPresent((<any>globalScope).Symbol) && isPresent(Symbol.iterator)) {
_symbolIterator = Symbol.iterator;
} else {
// es6-shim specific logic
Expand Down
2 changes: 1 addition & 1 deletion modules/angular2/src/http/backends/jsonp_backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class JSONPConnection_ extends JSONPConnection {
throw makeTypeError(JSONP_ERR_WRONG_METHOD);
}
this.request = req;
this.response = new Observable((responseObserver: Observer<Response>) => {
this.response = new Observable<Response>((responseObserver: Observer<Response>) => {

this.readyState = ReadyState.Loading;
let id = this._id = _dom.nextRequestID();
Expand Down
2 changes: 1 addition & 1 deletion modules/angular2/src/http/backends/mock_backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {Connection, ConnectionBackend} from '../interfaces';
import {isPresent} from 'angular2/src/facade/lang';
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
import {Subject} from 'rxjs/Subject';
import {ReplaySubject} from 'rxjs/subject/ReplaySubject';
import {ReplaySubject} from 'rxjs/ReplaySubject';
import {take} from 'rxjs/operator/take';

/**
Expand Down
2 changes: 1 addition & 1 deletion modules/angular2/src/http/backends/xhr_backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class XHRConnection implements Connection {
readyState: ReadyState;
constructor(req: Request, browserXHR: BrowserXhr, baseResponseOptions?: ResponseOptions) {
this.request = req;
this.response = new Observable((responseObserver: Observer<Response>) => {
this.response = new Observable<Response>((responseObserver: Observer<Response>) => {
let _xhr: XMLHttpRequest = browserXHR.build();
_xhr.open(RequestMethod[req.method].toUpperCase(), req.url);
// load event handler
Expand Down
2 changes: 1 addition & 1 deletion modules/angular2/test/http/backends/mock_backend_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {Map} from 'angular2/src/facade/collection';
import {RequestOptions, BaseRequestOptions} from 'angular2/src/http/base_request_options';
import {BaseResponseOptions, ResponseOptions} from 'angular2/src/http/base_response_options';
import {ResponseType} from 'angular2/src/http/enums';
import {ReplaySubject} from 'rxjs/subject/ReplaySubject';
import {ReplaySubject} from 'rxjs/ReplaySubject';

export function main() {
describe('MockBackend', () => {
Expand Down
16 changes: 3 additions & 13 deletions npm-shrinkwrap.clean.json
Original file line number Diff line number Diff line change
Expand Up @@ -4602,12 +4602,7 @@
}
},
"rc": {
"version": "1.1.6",
"dependencies": {
"minimist": {
"version": "1.2.0"
}
}
"version": "1.1.6"
},
"rcfinder": {
"version": "0.1.8",
Expand Down Expand Up @@ -4807,7 +4802,7 @@
"version": "1.1.5"
},
"rxjs": {
"version": "5.0.0-beta.2"
"version": "5.0.0-beta.6"
},
"sass-graph": {
"version": "2.0.1",
Expand Down Expand Up @@ -4870,12 +4865,7 @@
"version": "5.1.0"
},
"semver-diff": {
"version": "2.1.0",
"dependencies": {
"semver": {
"version": "5.1.0"
}
}
"version": "2.1.0"
},
"semver-utils": {
"version": "1.1.1"
Expand Down
24 changes: 5 additions & 19 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"es6-shim": "^0.35.0",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.2",
"rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12"
},
"devDependencies": {
Expand Down
X Tutup