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 {Connection, ConnectionBackend} from '../interfaces'; | ||||||
| import {isPresent} from 'angular2/src/facade/lang'; | import {isPresent} from 'angular2/src/facade/lang'; | ||||||
| import {BaseException, WrappedException} from 'angular2/src/facade/exceptions'; | import {BaseException, WrappedException} from 'angular2/src/facade/exceptions'; | ||||||
| var Rx = require('@reactivex/rxjs/dist/cjs/Rx'); | import {Subject, ReplaySubject} from '@reactivex/rxjs/dist/cjs/Rx'; | ||||||
| let {Subject, ReplaySubject} = Rx; |  | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  * |  * | ||||||
|  | |||||||
| @ -29,9 +29,7 @@ import { | |||||||
|   Http, |   Http, | ||||||
|   Jsonp |   Jsonp | ||||||
| } from 'angular2/http'; | } from 'angular2/http'; | ||||||
| 
 | import {Observable, Subject} from '@reactivex/rxjs/dist/cjs/Rx'; | ||||||
| var Rx = require('@reactivex/rxjs/dist/cjs/Rx'); |  | ||||||
| let {Observable, Subject} = Rx; |  | ||||||
| 
 | 
 | ||||||
| class SpyObserver extends SpyObject { | class SpyObserver extends SpyObject { | ||||||
|   onNext: Function; |   onNext: Function; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user