note to self about array event sources

This commit is contained in:
Adam Shaw
2013-03-16 17:22:45 -07:00
parent 9d1db0eb7d
commit 5220310084
+2
View File
@@ -81,6 +81,8 @@ function EventManager(options, _sources) {
if (source.eventTransform) {
events = $.map(events, source.eventTransform);
}
// TODO: this technique is not ideal for static array event sources.
// For arrays, we'll want to process all events right in the beginning, then never again.
for (var i=0; i<events.length; i++) {
events[i].source = source;