Skip to content

Commit 702fc03

Browse files
authored
Revert "Update article.md"
1 parent 0eb2c87 commit 702fc03

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

2-ui/2-events/05-dispatch-events/article.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@
1515
let event = new Event(type[, options]);
1616
```
1717

18-
پارامتر ها:
18+
Arguments:
1919

20-
- *نوع*: event type, یک رشته مانند `"click"` .
21-
- *گزینه ها*: شی ای با دو ویژگی اختیاری.
22-
- *لغو شدن (true/false)*: اگر ویزگی مقدار true را داشت عمل پیش فرض آن لغو میشود،
20+
- *type* -- event type, a string like `"click"` or our own like `"my-event"`.
21+
- *options* -- the object with two optional properties:
22+
- `bubbles: true/false` -- if `true`, then the event bubbles.
23+
- `cancelable: true/false` -- if `true`, then the "default action" may be prevented. Later we'll see what it means for custom events.
24+
25+
By default both are false: `{bubbles: false, cancelable: false}`.
2326

2427
## dispatchEvent
2528

0 commit comments

Comments
 (0)