From ba148eec5bee94f07c162f16abf2964051d740e6 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 24 Aug 2015 14:54:25 -0400 Subject: [PATCH] (js) Fix error in Component.prototype.$reset --- UI/WebServerResources/js/Scheduler/Component.service.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UI/WebServerResources/js/Scheduler/Component.service.js b/UI/WebServerResources/js/Scheduler/Component.service.js index 3f6599efe..b62be10b0 100644 --- a/UI/WebServerResources/js/Scheduler/Component.service.js +++ b/UI/WebServerResources/js/Scheduler/Component.service.js @@ -375,8 +375,10 @@ if (angular.isUndefined(this.repeat.month)) this.repeat.month = { occurrence: '1', day: 'SU', type: 'bymonthday' }; if (angular.isUndefined(this.repeat.monthdays)) + // TODO: initialize this.repeat.monthdays with month day of start date this.repeat.monthdays = []; if (angular.isUndefined(this.repeat.months)) + // TODO: initialize this.repeat.months with month of start date this.repeat.months = []; if (angular.isUndefined(this.repeat.year)) this.repeat.year = {}; @@ -729,7 +731,7 @@ delete _this[key]; } }); - angular.extend(this, this.$shadowData); + this.init(this.$shadowData); this.$shadowData = this.$omit(true); };