Skip to content

Commit

Permalink
fix for businessHours fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Nov 26, 2014
1 parent 4d593cf commit 3279a5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/EventManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,6 @@ function EventManager(options) { // assumed to be a calendar
// HACK: can override the recurring window by providing custom rangeStart/rangeEnd (for businessHours).
function expandEvent(abstractEvent, _rangeStart, _rangeEnd) {
var events = [];
var view;
var dowHash;
var dow;
var i;
Expand Down Expand Up @@ -849,7 +848,7 @@ function EventManager(options) { // assumed to be a calendar

// Returns an array of events as to when the business hours occur in the given view.
// Abuse of our event system :(
function getBusinessHoursEvents(view) {
function getBusinessHoursEvents() {
var optionVal = options.businessHours;
var defaultVal = {
className: 'fc-nonbusiness',
Expand All @@ -858,6 +857,7 @@ function EventManager(options) { // assumed to be a calendar
dow: [ 1, 2, 3, 4, 5 ], // monday - friday
rendering: 'inverse-background'
};
var view = t.getView();
var eventInput;

if (optionVal) {
Expand Down
2 changes: 1 addition & 1 deletion src/common/TimeGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $.extend(TimeGrid.prototype, {


renderBusinessHours: function() {
var events = this.view.calendar.getBusinessHoursEvents(this.view);
var events = this.view.calendar.getBusinessHoursEvents();
this.businessHourSegs = this.renderFill('businessHours', this.eventsToSegs(events), 'bgevent');
},

Expand Down

0 comments on commit 3279a5f

Please sign in to comment.