|
Last change
on this file was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
396 bytes
|
| Rev | Line | |
|---|
| [e4c61dd] | 1 | // These are typically used in conjunction with noevent to ensure that we can
|
|---|
| 2 | // preventDefault on the event.
|
|---|
| 3 | export const nonpassive = {passive: false};
|
|---|
| 4 | export const nonpassivecapture = {capture: true, passive: false};
|
|---|
| 5 |
|
|---|
| 6 | export function nopropagation(event) {
|
|---|
| 7 | event.stopImmediatePropagation();
|
|---|
| 8 | }
|
|---|
| 9 |
|
|---|
| 10 | export default function(event) {
|
|---|
| 11 | event.preventDefault();
|
|---|
| 12 | event.stopImmediatePropagation();
|
|---|
| 13 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.