My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1345: Return the event after the renderEvent
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by thedestr...@gmail.com, Mar 21, 2012
It will be nice if the method "renderEvent" return the event who is created/updated.

I added in the function renderEvent the return statement and it's work.

function renderEvent(event, stick) {
    normalizeEvent(event);
    if (!event.source) {
        if (stick) {
            stickySource.events.push(event);
            event.source = stickySource;
        }
        cache.push(event);
    }
    reportEvents(cache);

    return event;
}

Aug 15, 2013
Project Member #1 adamrs...@gmail.com
event "rendering" should stay separate from anything related to the event's data. this modification should probably be done somewhere else. Also, the return value from `eventRender` is already used to return an element, which will replace the default.
Status: WontFix
Sign in to add a comment

Powered by Google Project Hosting