Skip to content

Commit

Permalink
Merge pull request #175 from adamschlag/master
Browse files Browse the repository at this point in the history
Immediately clear delayed tasks
  • Loading branch information
patchthecode authored Oct 24, 2016
2 parents ff34617 + 33f3b6c commit a115ff9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/JTAppleCalendarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,11 @@ open class JTAppleCalendarView: UIView {

func executeDelayedTasks() {
let tasksToExecute = delayedExecutionClosure
delayedExecutionClosure.removeAll()

for aTaskToExecute in tasksToExecute {
aTaskToExecute()
}
delayedExecutionClosure.removeAll()
}

// Only reload the dates if the datasource information has changed
Expand Down

0 comments on commit a115ff9

Please sign in to comment.