(js) Fix error in Component.prototype.$reset

pull/100/merge
Francis Lachapelle 2015-08-24 14:54:25 -04:00
parent 49c4884cc9
commit ba148eec5b
1 changed files with 3 additions and 1 deletions

View File

@ -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);
};