mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(snapshots): performance improvements to deep clone, makes snapshot's a lot quicker for big dashboards with a lot of panels and data
This commit is contained in:
parent
fc1891320e
commit
0cd2e150d5
@ -13,7 +13,7 @@
|
|||||||
"zone.js": "^0.6.6",
|
"zone.js": "^0.6.6",
|
||||||
"autoprefixer": "^6.3.3",
|
"autoprefixer": "^6.3.3",
|
||||||
"es6-promise": "^3.0.2",
|
"es6-promise": "^3.0.2",
|
||||||
"es6-shim": "^0.35.0",
|
"es6-shim": "^0.35.1",
|
||||||
"expect.js": "~0.2.0",
|
"expect.js": "~0.2.0",
|
||||||
"glob": "~3.2.7",
|
"glob": "~3.2.7",
|
||||||
"grunt": "~0.4.0",
|
"grunt": "~0.4.0",
|
||||||
|
@ -65,7 +65,7 @@ function (angular, $, _, moment) {
|
|||||||
|
|
||||||
// cleans meta data and other non peristent state
|
// cleans meta data and other non peristent state
|
||||||
p.getSaveModelClone = function() {
|
p.getSaveModelClone = function() {
|
||||||
var copy = angular.copy(this);
|
var copy = $.extend(true, {}, this);
|
||||||
delete copy.meta;
|
delete copy.meta;
|
||||||
return copy;
|
return copy;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user