Renamed needs_refresh flag to _needs_refresh
Fixed a bug with needs_refresh flag overwriting the needs_refresh method
This commit is contained in:
parent
126cab725c
commit
88cf85e483
1 changed files with 3 additions and 3 deletions
|
@ -735,17 +735,17 @@ define([
|
||||||
if (_.isUndefined(value)) {
|
if (_.isUndefined(value)) {
|
||||||
value = true;
|
value = true;
|
||||||
}
|
}
|
||||||
$scope.needs_refresh = value;
|
$scope._needs_refresh = value;
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.close_edit = function () {
|
$scope.close_edit = function () {
|
||||||
$scope.metricEditor = {
|
$scope.metricEditor = {
|
||||||
index: -1
|
index: -1
|
||||||
};
|
};
|
||||||
if ($scope.needs_refresh) {
|
if ($scope._needs_refresh) {
|
||||||
$scope.get_rows();
|
$scope.get_rows();
|
||||||
}
|
}
|
||||||
$scope.needs_refresh = false;
|
$scope._needs_refresh = false;
|
||||||
$scope.$emit('render');
|
$scope.$emit('render');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue