@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.
@@ -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
- this.valueSubj = new rxjs.ReplaySubject(1);
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
- return _this.valueSubj;
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
  };