From c8e23b040730c8fde68bbcb356e0961fb2750e85 Mon Sep 17 00:00:00 2001 From: Wayne Maurer Date: Tue, 29 Mar 2016 10:35:25 +0200 Subject: [PATCH] fix(TranslateService): removed deprecated RxJS fromArray `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 --- bundles/ng2-translate.js | 4 ++-- src/translate.service.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/ng2-translate.js b/bundles/ng2-translate.js index eb7bd46b..c88df24c 100644 --- a/bundles/ng2-translate.js +++ b/bundles/ng2-translate.js @@ -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, @@ -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'); diff --git a/src/translate.service.ts b/src/translate.service.ts index 7401bd3e..792295d3 100644 --- a/src/translate.service.ts +++ b/src/translate.service.ts @@ -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';