Skip to content

Commit 71c34b6

Browse files
authored
Update article.md
1 parent 35bd7d1 commit 71c34b6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

2-ui/99-ui-misc/01-mutation-observer/article.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11

22
# Mutation observer
33

4-
همان طور که می دانیم `MutationObserver` یک شی داخلی است که یک عنصر DOM را مشاهده می کند و هنگامی که تغییری را تشخیص می دهد یک تماس برگشتی ایجاد می کند.
4+
`MutationObserver` is a built-in object that observes a DOM element and fires a callback when it detects a change.
55

6-
ابتدا نگاهی به نحو می اندازیم و سپس یک مورد استفاده در دنیای واقعی را بررسی می کنیم تا ببینیم چنین چیزی در کجا ممکن است مفید باشد.
6+
We'll first take a look at the syntax, and then explore a real-world use case, to see where such thing may be useful.
77

88
## Syntax
9-
109
`MutationObserver` is easy to use.
1110

1211
First, we create an observer with a callback-function:

0 commit comments

Comments
 (0)