Renamed needs_refresh flag to _needs_refresh

Fixed a bug with needs_refresh flag overwriting the needs_refresh method
This commit is contained in:
Boaz Leskes 2014-01-09 23:20:01 +01:00
parent 126cab725c
commit 88cf85e483

View file

@ -735,17 +735,17 @@ define([
if (_.isUndefined(value)) {
value = true;
}
$scope.needs_refresh = value;
$scope._needs_refresh = value;
};
$scope.close_edit = function () {
$scope.metricEditor = {
index: -1
};
if ($scope.needs_refresh) {
if ($scope._needs_refresh) {
$scope.get_rows();
}
$scope.needs_refresh = false;
$scope._needs_refresh = false;
$scope.$emit('render');
};