(js) Make sure some arrays are initialized

This commit is contained in:
Francis Lachapelle
2015-12-09 19:28:26 -05:00
parent 93ced64456
commit 6e988404d9
2 changed files with 11 additions and 7 deletions
@@ -71,10 +71,6 @@
}
function addCalendarCategory() {
if (!angular.isDefined(vm.preferences.defaults.SOGoCalendarCategoriesColors)) {
vm.preferences.defaults.SOGoCalendarCategoriesColors = {};
vm.preferences.defaults.SOGoCalendarCategories = [];
}
vm.preferences.defaults.SOGoCalendarCategoriesColors["New category"] = "#aaa";
vm.preferences.defaults.SOGoCalendarCategories.push("New category");
}