Skip to content

Commit

Permalink
Calendar.prototype.changeView: tautology (nhn#663)
Browse files Browse the repository at this point in the history
newViewName is set previously to "week", if it was "day".
  • Loading branch information
dilyanpalauzov committed Jul 23, 2020
1 parent b43951a commit 4b7bdca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/factory/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ Calendar.prototype.changeView = function(newViewName, force) {
dragHandler,
options
);
} else if (newViewName === 'week' || newViewName === 'day') {
} else if (newViewName === 'week') {
created = _createWeekView(
controller,
layout.container,
Expand Down

0 comments on commit 4b7bdca

Please sign in to comment.