Skip to content

Commit

Permalink
note to self about array event sources
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Mar 17, 2013
1 parent 9d1db0e commit 5220310
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/EventManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5220310

Please sign in to comment.