@micropermit/client-angular 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/micropermit-client-angular.umd.js +15 -3
- package/bundles/micropermit-client-angular.umd.js.map +1 -1
- package/bundles/micropermit-client-angular.umd.min.js +1 -1
- package/bundles/micropermit-client-angular.umd.min.js.map +1 -1
- package/esm2015/lib/links/linkfield.js +16 -4
- package/esm5/lib/links/linkfield.js +16 -4
- package/fesm2015/micropermit-client-angular.js +15 -3
- package/fesm2015/micropermit-client-angular.js.map +1 -1
- package/fesm5/micropermit-client-angular.js +15 -3
- package/fesm5/micropermit-client-angular.js.map +1 -1
- package/package.json +1 -1
|
@@ -886,17 +886,29 @@
|
|
|
886
886
|
*/
|
|
887
887
|
function () {
|
|
888
888
|
var _this = this;
|
|
889
|
+
//TODO handle listeners in case of intermidiate uninitialize (new valueSubj)
|
|
889
890
|
if (this.valueSubj) {
|
|
890
891
|
return this.valueSubj;
|
|
891
892
|
}
|
|
892
893
|
else {
|
|
893
|
-
|
|
894
|
+
/** @type {?} */
|
|
895
|
+
var valueSubj_1 = new rxjs.ReplaySubject(1);
|
|
896
|
+
this.valueSubj = valueSubj_1;
|
|
894
897
|
return rxjs.defer((/**
|
|
895
898
|
* @return {?}
|
|
896
899
|
*/
|
|
897
900
|
function () {
|
|
898
|
-
_this.initWithObs(null, null).subscribe(
|
|
899
|
-
|
|
901
|
+
_this.initWithObs(null, null).subscribe((/**
|
|
902
|
+
* @param {?} value
|
|
903
|
+
* @return {?}
|
|
904
|
+
*/
|
|
905
|
+
function (value) {
|
|
906
|
+
if (_this.valueSubj !== valueSubj_1) {
|
|
907
|
+
valueSubj_1.next(value);
|
|
908
|
+
valueSubj_1.complete();
|
|
909
|
+
}
|
|
910
|
+
}));
|
|
911
|
+
return valueSubj_1;
|
|
900
912
|
}));
|
|
901
913
|
}
|
|
902
914
|
};
|