Fix functions flushing when editor reopened.
This commit is contained in:
@@ -17,7 +17,6 @@ define([
|
|||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
$scope.targetLetters = targetLetters;
|
$scope.targetLetters = targetLetters;
|
||||||
$scope.metric = {};
|
$scope.metric = {};
|
||||||
$scope.target.functions = [];
|
|
||||||
|
|
||||||
// Load default values
|
// Load default values
|
||||||
var targetDefaults = {
|
var targetDefaults = {
|
||||||
@@ -25,7 +24,8 @@ define([
|
|||||||
group: { filter: "" },
|
group: { filter: "" },
|
||||||
host: { filter: "" },
|
host: { filter: "" },
|
||||||
application: { filter: "" },
|
application: { filter: "" },
|
||||||
item: { filter: "" }
|
item: { filter: "" },
|
||||||
|
functions: [],
|
||||||
};
|
};
|
||||||
_.defaults($scope.target, targetDefaults);
|
_.defaults($scope.target, targetDefaults);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user