Skip to content

Commit

Permalink
fix(TranslateService): removed deprecated RxJS fromArray
Browse files Browse the repository at this point in the history
`Observable.fromArray` does not exist in the latest beta of RxJS 5. It is deprecated in favour of `Observable.from`.
I've simply removed the import as it's not used in this file anyway.

Closes #76
  • Loading branch information
wmaurer authored and ocombe committed Mar 29, 2016
1 parent 4a52e50 commit c8e23b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bundles/ng2-translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ System.registerDynamic("src/translate.pipe", ["angular2/core", "./translate.serv
return module.exports;
});

System.registerDynamic("src/translate.service", ["angular2/core", "angular2/http", "rxjs/Observable", "rxjs/add/observable/fromArray", "rxjs/add/operator/share", "rxjs/add/operator/map", "rxjs/add/operator/merge", "rxjs/add/operator/toArray", "./translate.parser"], true, function($__require, exports, module) {
System.registerDynamic("src/translate.service", ["angular2/core", "angular2/http", "rxjs/Observable", "rxjs/add/operator/of", "rxjs/add/operator/share", "rxjs/add/operator/map", "rxjs/add/operator/merge", "rxjs/add/operator/toArray", "./translate.parser"], true, function($__require, exports, module) {
"use strict";
;
var define,
Expand Down Expand Up @@ -158,7 +158,7 @@ System.registerDynamic("src/translate.service", ["angular2/core", "angular2/http
var core_1 = $__require('angular2/core');
var http_1 = $__require('angular2/http');
var Observable_1 = $__require('rxjs/Observable');
$__require('rxjs/add/observable/fromArray');
$__require('rxjs/add/operator/of');
$__require('rxjs/add/operator/share');
$__require('rxjs/add/operator/map');
$__require('rxjs/add/operator/merge');
Expand Down
2 changes: 1 addition & 1 deletion src/translate.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Injectable, EventEmitter, Optional} from 'angular2/core';
import {Http, Response} from 'angular2/http';
import {Observable} from 'rxjs/Observable'
import {Observer} from "rxjs/Observer";
import 'rxjs/add/observable/fromArray';
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/share';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/merge';
Expand Down

0 comments on commit c8e23b0

Please sign in to comment.