(js) Deep copy by default in Calendar.$omit

This commit is contained in:
Francis Lachapelle
2018-08-31 11:39:14 -04:00
parent 155114c8fb
commit 2d63bd0bb4
2 changed files with 2 additions and 1 deletions

View File

@@ -619,7 +619,7 @@
angular.forEach(this, function(value, key) {
if (key != 'constructor' &&
key[0] != '$') {
calendar[key] = value;
calendar[key] = angular.copy(value);
}
});
return calendar;