mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
add comment.
This commit is contained in:
parent
da71dfeb54
commit
f2d5f44f3f
@ -233,6 +233,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
|
||||
__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) ||
|
||||
|
Loading…
Reference in New Issue
Block a user