diff options
Diffstat (limited to 'files/ru/web/api/mutationobserver')
-rw-r--r-- | files/ru/web/api/mutationobserver/index.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/files/ru/web/api/mutationobserver/index.html b/files/ru/web/api/mutationobserver/index.html index bfbed7de7b..6afd425cc2 100644 --- a/files/ru/web/api/mutationobserver/index.html +++ b/files/ru/web/api/mutationobserver/index.html @@ -19,7 +19,7 @@ translation_of: Web/API/MutationObserver <dl> <dt>{{domxref("MutationObserver.MutationObserver", "MutationObserver()")}}</dt> - <dd>Создает и возвращает новый <code>MutationObserver</code>, который вызовет определенную функцию обратного вызова при изменении в DOM.</dd> + <dd>Создает и возвращает новый <code>MutationObserver</code>, который вызовет определенную колбэк-функцию при изменении в DOM.</dd> </dl> <h2 id="Параметры">Параметры</h2> @@ -115,7 +115,7 @@ const config = { subtree: true }; -// Функция обратного вызова при срабатывании мутации +// Колбэк-функция при срабатывании мутации const callback = function(mutationsList, observer) { for (let mutation of mutationsList) { if (mutation.type === 'childList') { @@ -126,7 +126,7 @@ const callback = function(mutationsList, observer) { } }; -// Создаем<code> </code>экземпляр наблюдателя с указанной функцией обратного вызова +// Создаем<code> </code>экземпляр наблюдателя с указанной функцией колбэка const observer = new MutationObserver(callback); // Начинаем наблюдение за настроенными изменениями целевого элемента<code> |