Forecast data

This commit is contained in:
Max Lynch
2013-10-23 19:19:09 -05:00
parent 65e0835c08
commit dd1acc44e1
7 changed files with 91 additions and 7 deletions

View File

@ -16,8 +16,7 @@
// Trigger a new event
trigger: function(eventType, data) {
// TODO: Do we need to use the old-school createEvent stuff?
var event = new CustomEvent(eventType, data);
var event = new CustomEvent(eventType, { detail: data });
// Make sure to trigger the event on the given target, or dispatch it from
// the window if we don't have an event target