(js) Fix error in Component.prototype.$reset
This commit is contained in:
parent
49c4884cc9
commit
ba148eec5b
|
@ -375,8 +375,10 @@
|
||||||
if (angular.isUndefined(this.repeat.month))
|
if (angular.isUndefined(this.repeat.month))
|
||||||
this.repeat.month = { occurrence: '1', day: 'SU', type: 'bymonthday' };
|
this.repeat.month = { occurrence: '1', day: 'SU', type: 'bymonthday' };
|
||||||
if (angular.isUndefined(this.repeat.monthdays))
|
if (angular.isUndefined(this.repeat.monthdays))
|
||||||
|
// TODO: initialize this.repeat.monthdays with month day of start date
|
||||||
this.repeat.monthdays = [];
|
this.repeat.monthdays = [];
|
||||||
if (angular.isUndefined(this.repeat.months))
|
if (angular.isUndefined(this.repeat.months))
|
||||||
|
// TODO: initialize this.repeat.months with month of start date
|
||||||
this.repeat.months = [];
|
this.repeat.months = [];
|
||||||
if (angular.isUndefined(this.repeat.year))
|
if (angular.isUndefined(this.repeat.year))
|
||||||
this.repeat.year = {};
|
this.repeat.year = {};
|
||||||
|
@ -729,7 +731,7 @@
|
||||||
delete _this[key];
|
delete _this[key];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
angular.extend(this, this.$shadowData);
|
this.init(this.$shadowData);
|
||||||
this.$shadowData = this.$omit(true);
|
this.$shadowData = this.$omit(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue