fix(http): refactor 'require' statements to 'import' declarations for Rx
Looks like this is some old leftover code from the times when Rx didn't distribute typings via npm. Closes #5287
This commit is contained in:
parent
b22eddf1cb
commit
bcd926adc5
|
@ -5,8 +5,7 @@ import {ReadyStates} from '../enums';
|
|||
import {Connection, ConnectionBackend} from '../interfaces';
|
||||
import {isPresent} from 'angular2/src/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||
var Rx = require('@reactivex/rxjs/dist/cjs/Rx');
|
||||
let {Subject, ReplaySubject} = Rx;
|
||||
import {Subject, ReplaySubject} from '@reactivex/rxjs/dist/cjs/Rx';
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -29,9 +29,7 @@ import {
|
|||
Http,
|
||||
Jsonp
|
||||
} from 'angular2/http';
|
||||
|
||||
var Rx = require('@reactivex/rxjs/dist/cjs/Rx');
|
||||
let {Observable, Subject} = Rx;
|
||||
import {Observable, Subject} from '@reactivex/rxjs/dist/cjs/Rx';
|
||||
|
||||
class SpyObserver extends SpyObject {
|
||||
onNext: Function;
|
||||
|
|
Loading…
Reference in New Issue