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:
Igor Minar 2015-11-13 20:37:50 -08:00
parent b22eddf1cb
commit bcd926adc5
2 changed files with 2 additions and 5 deletions

View File

@ -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';
/**
*

View File

@ -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;