Skip to content

Commit f2d5f44

Browse files
author
Steven Orvell
committed
add comment.
1 parent da71dfe commit f2d5f44

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/standard/utils.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@
233233

234234
__eventCache: {},
235235

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

0 commit comments

Comments
 (0)