@micropermit/client-angular 0.2.9-beta.8 → 0.2.9-beta.9

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.
@@ -767,6 +767,7 @@
767
767
  _this.initialized = false;
768
768
  _this.serializeTo = LinkSerializer.AS_VALUE_IF_INITIALIZED;
769
769
  _this.intervalId = null;
770
+ _this.isRefreshing = false;
770
771
  if (initialized) {
771
772
  _this.set(initialValue);
772
773
  }
@@ -825,16 +826,23 @@
825
826
  if (interval) {
826
827
  this.stopRefresh();
827
828
  }
828
- if (this.isInitialized()) {
829
- this.initWithObs().subscribe();
830
- }
829
+ /** @type {?} */
830
+ var resCb = (/**
831
+ * @return {?}
832
+ */
833
+ function () {
834
+ _this.isRefreshing = false;
835
+ });
836
+ this.isRefreshing = true;
837
+ this.initWithObs().subscribe(resCb, resCb, resCb);
831
838
  if (interval) {
832
839
  this.intervalId = setInterval((/**
833
840
  * @return {?}
834
841
  */
835
842
  function () {
836
- if (_this.isInitialized()) {
837
- _this.initWithObs().subscribe();
843
+ if (!_this.isRefreshing) {
844
+ _this.isRefreshing = true;
845
+ _this.initWithObs().subscribe(resCb, resCb, resCb);
838
846
  }
839
847
  }), interval);
840
848
  }
@@ -1048,6 +1056,11 @@
1048
1056
  * @private
1049
1057
  */
1050
1058
  LinkField.prototype.intervalId;
1059
+ /**
1060
+ * @type {?}
1061
+ * @private
1062
+ */
1063
+ LinkField.prototype.isRefreshing;
1051
1064
  }
1052
1065
 
1053
1066
  /**