June 2016
Intermediate to advanced
910 pages
18h 59m
English
Internally, calendar entries are segregated into one-time and recurring calendar entries. Premature optimization may be the root of all evil, but when it comes to working on calendars on other systems, looking at every calendar entry for every day has worse performance characteristics, roughly O(n * m) instead of the slight mindfulness shown here, which is closer to O(n + m). Calendar entries are displayed as an H2 and a UL, each given a CSS class to facilitate styling (at present, the project has this portion as an unstyled, blank canvas):
render_upcoming: function() {
var that = this;
var result = [];This code, unusually for the examples we have seen so far, uses the var that = this; hack. In ...
Read now
Unlock full access