Skip to content

Commit

Permalink
add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Nov 5, 2015
1 parent da71dfe commit f2d5f44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/standard/utils.html
Expand Up @@ -233,6 +233,11 @@

__eventCache: {},

// NOTE: We optionally cache event objects for efficiency during high
// freq. opts. This option cannot be used for events which may have
// `stopPropagation` called on them. On Chrome and Safari (but not FF)
// if `stopPropagation` is called, the event cannot be reused. It does not
// dispatch again.
_getEvent: function(type, bubbles, cancelable, useCache) {
var event = useCache && this.__eventCache[type];
if (!event || ((event.bubbles != bubbles) ||
Expand Down

0 comments on commit f2d5f44

Please sign in to comment.