@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.
- package/bundles/micropermit-client-angular.umd.js +18 -5
- 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 +19 -6
- package/esm5/lib/links/linkfield.js +19 -6
- package/fesm2015/micropermit-client-angular.js +18 -5
- package/fesm2015/micropermit-client-angular.js.map +1 -1
- package/fesm5/micropermit-client-angular.js +18 -5
- package/fesm5/micropermit-client-angular.js.map +1 -1
- package/lib/links/linkfield.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
829
|
-
|
|
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.
|
|
837
|
-
_this.
|
|
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
|
/**
|