* Creates if not yet created and returns the shared Gestures instance for * the specified element. * @param {!Element} element * @param {boolean=} opt_shouldNotPreventDefault * @param {boolean=} opt_shouldStopPropagation * @return {!Gestures}
(
element,
opt_shouldNotPreventDefault = false,
opt_shouldStopPropagation = false
)
| 53 | * @return {!Gestures} |
| 54 | */ |
| 55 | static get( |
| 56 | element, |
| 57 | opt_shouldNotPreventDefault = false, |
| 58 | opt_shouldStopPropagation = false |
| 59 | ) { |
| 60 | let res = element[PROP_]; |
| 61 | if (!res) { |
| 62 | res = new Gestures( |
| 63 | element, |
| 64 | opt_shouldNotPreventDefault, |
| 65 | opt_shouldStopPropagation |
| 66 | ); |
| 67 | element[PROP_] = res; |
| 68 | } |
| 69 | return res; |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * @param {!Element} element |
no outgoing calls
no test coverage detected