Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 1083820 - [Calendar] update MonthsDay view to use DayObserver r=gaye #25413

Merged

Conversation

millermedeiros
Copy link
Contributor

294 additions and 2,208 deletions!!!

@millermedeiros millermedeiros changed the title Bug 1083820 - [Calendar] update MonthsDay view to use DayObserver Bug 1083820 - [Calendar] update MonthsDay view to use DayObserver r=gaye Oct 22, 2014
@try-server-hook
Copy link

millermedeiros Miller Medeiros (millermedeiros) started tests. Results

});
},
records.sort((a, b) => {
return a.busytime.startDate - b.busytime.startDate;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just realized that we should always put "all day" events at the top, even if we have other events that starts at midnight. will update this logic.

in fact I even think that we should probably update the day observer logic so the records are already split into "events" and "all day" events. it will avoid duplication and simplify things.

@try-server-hook
Copy link

millermedeiros Miller Medeiros (millermedeiros) started tests. Results

// without need (causes error on unit tests)
debouncedEmit[dayId].cancel();
delete debouncedEmit[dayId];
}
delete cachedRecords[dayId];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We wouldn't need to delete it if !debouncedEmit[dayId] ?

@try-server-hook
Copy link

millermedeiros Miller Medeiros (millermedeiros) started tests. Results

millermedeiros added a commit that referenced this pull request Oct 29, 2014
…ctor

Bug 1083820 - [Calendar] update MonthsDay view to use DayObserver r=gaye
@millermedeiros millermedeiros merged commit 0dfc199 into mozilla-b2g:master Oct 29, 2014
@millermedeiros millermedeiros deleted the 1083820-months-day-refactor branch October 29, 2014 16:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants