slobber / flexcalendar

Automatically exported from code.google.com/p/flexcalendar
1 stars 0 forks source link

bug and fix suggestion: CalendarView.commitProperties() fails for _renderFacoryChanged #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using MonthView control, bind a "date" variable, set it to something
initially.
2. Update the date variable at some point after initial load (set it a
month or two before or after initial date).

What is the expected output? What do you see instead?

MonthView should refresh to a different month with different events.

Instead, a typecast error shows up in CalendarView.commitProperties() and
program is dead.

This is because the loop "for each (var event:CalendarEvent in events)" us
attempting to update local collection of "events" which is actually of
component interface-provided type ( e.g. com.flex.calsample.Event ), not
CalendarEvent.

What version of the product are you using? On what operating system?
Sorry.  Not sure of the version.  I downloaded it a few weeks ago, so
expect it to be same as current version as of 3/24/2008, since this has not
been updated in some time.  On XP.

Please provide any additional information below.

In CalendarView.commitProperties(), eventsChanged() may need to be called,
and previously cached events in local var visibleEvents:Cache will need to
be updated to behave as intended.

I'm loathe to join this group and update the fix myself right now, as I am
not fully in touch with all intended behavior of this component yet & not
sure if anyone is still working on this.  But perhaps this note will help
others, in the meantime.

Original issue reported on code.google.com by ken.s...@gmail.com on 24 Mar 2008 at 8:36