My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2540: renderEvent when event.source specified doesn't display the event
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2015


Sign in to add a comment
 
Reported by e...@ingroup.com, Jul 4, 2015
Apologies, I'm relatively new to fullCalendar (which is fabulous!!)

Calling renderEvent with sticky=false and an event.source specified seems to skip adding the event to the internal cache and thus never displays the event, even though it seems that was a legal, and anticipated scenario.

Could the problem be that the cache.push(event) at EventManager.js:376 is slightly misplaced inside the test for !event.source (:371)? Moving the push outside the if seems to make everything much happier, but I didn't want to submit a pull request until folks more knowledgeable than I had a chance to review the issue!

Thanks so much and apologies if I've gotten this completely wrong!

Aug 2, 2015
Project Member #1 adamrs...@gmail.com
I haven't tried to recreate what you explain, but imagine the problem is happening because you manually setting the `source`. that is meant to be an internally set property, not meant to be settable by the outside.
Status: Done
Sign in to add a comment

Powered by Google Project Hosting