Skip to content

chore: remove mediawiki.external macro from ru #12396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/ru/mozilla/firefox/releases/3/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ original_slug: Firefox_3_for_developers
- **Web-based protocol handlers.** Web applications, such as your favorite web mail provider, can now be used instead of desktop applications for handling `mailto:` links from other sites. Similar support is provided for other protocols as well. (Note that web applications do have to register themselves with Firefox before this will work.)
- **Easy to use Download Actions.** A new Applications preferences pane provides an improved user interface for configuring handlers for various file types and protocol schemes.
- **Improved look and feel.** Graphics and font handling have been improved to make web sites look better on your screen, including sharper text rendering and better support for fonts with ligatures and complex scripts. In addition, Mac and Linux (Gnome) users will find that Firefox feels more like a native application for their platform than ever, with a new, native, look and feel.
- **Color management support.** By setting the `gfx.color_management.enabled` preference in `{{ mediawiki.external('about:config') }}`, you can ask Firefox to use the color profiles embedded in images to adjust the colors to match your computer's display.
- **Color management support.** By setting the `gfx.color_management.enabled` preference in `about:config`, you can ask Firefox to use the color profiles embedded in images to adjust the colors to match your computer's display.
- **Offline support.** Web applications can take advantage of new features to support being used even when you don't have an Internet connection.

#### Security and privacy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var plugins = navigator.plugins;

`plugins` используется для доступа к объекту {{domxref("Plugin")}} или по имени, или как элемент массива..

Возвращаемое значение не массив JavaScript, но оно имеет свойство размера и поддерживает доступ к индивидуальным элементам с использованием квадратных скобок (`plugins{{mediawiki.external(2)}}`), а также через пункт (индекс) и namedItem ("Name") методы.
Возвращаемое значение не массив JavaScript, но оно имеет свойство размера и поддерживает доступ к индивидуальным элементам с использованием квадратных скобок (`plugins[2]`), а также через пункт (индекс) и namedItem ("Name") методы.

## Примеры

Expand Down
11 changes: 2 additions & 9 deletions files/ru/web/api/window/error_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ tags:
translation_of: Web/API/GlobalEventHandlers/onerror
original_slug: Web/API/GlobalEventHandlers/onerror
---

{{ ApiRef("HTML DOM") }}

Обработчик события для ошибок среды Javascript.
Expand Down Expand Up @@ -55,14 +56,6 @@ window.onerror = function myErrorHandler(errorMsg, url, lineNumber) {
}
```

## Примечания

Событие возникает, когда происходит ошибка в скрипте.

При использовании строчной HTML-разметки (\<body onerror="alert('an error occurred')>...), аргументы не именуются. Они могут быть доступны через arguments от `{{ mediawiki.external(0) }}` до `{{ mediawiki.external(2) }}`.

Здесь недоступен `Components.stack.caller для использования`. (Смотрите [**bug 355430**](https://bugzilla.mozilla.org/show_bug.cgi?id=355430).)

Comment on lines -58 to -65
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this part has been removed from en-US, just reflect the change.

## Спецификации

[JavaScript 1.1](http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.3/reference/handlers.html#1120097)
{{Specifications}}
21 changes: 8 additions & 13 deletions files/ru/web/javascript/reference/operators/delete/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,27 +99,22 @@ alert(foo.bar); // выводит "undefined", свойство бол

### Удаление элементов массива

Когда с помощью оператора delete удаляется элемент массива, длина массива не меняется. Например, если вы удалите a{{ mediawiki.external(3) }}, a{{ mediawiki.external(4) }} по прежнему a{{ mediawiki.external(4) }}, а a{{ mediawiki.external(3) }} не определено. Так будет даже если вы удалите последний элемент массива (`delete a{{ mediawiki.external('a.length-1') }}`).
Когда с помощью оператора delete удаляется элемент массива, длина массива не меняется. Например, если вы удалите `a[3]`, `a[4]` по прежнему `a[4]`, а `a[3]` не определено. Так будет даже если вы удалите последний элемент массива (`delete a[a.length-1]`).

Когда оператор `delete` удаляет элемент массива, этот элемент больше не существует в массиве. В следующем примере, trees{{ mediawiki.external(3) }} удаляется с помощью `delete`.
Когда оператор `delete` удаляет элемент массива, этот элемент больше не существует в массиве. В следующем примере, `trees[3]` удаляется с помощью `delete`.

```js
var trees = ["redwood","bay","cedar","oak","maple"];

const trees = ["redwood", "bay", "cedar", "oak", "maple"];
delete trees[3];
if (3 in trees) {
// этот участок кода не выполнится
}
console.log(3 in trees); // false
```

Если вы хотите, чтобы элемент массива существовал, но имел значение undefined, используйте значение `undefined` вместо оператора `delete`. В следующем примере, trees{{ mediawiki.external(3) }} принимает значение undefined, но элемент массива все ещё существует:
Если вы хотите, чтобы элемент массива существовал, но имел значение undefined, используйте значение `undefined` вместо оператора `delete`. В следующем примере, `trees[3]` принимает значение undefined, но элемент массива все ещё существует:

```js
var trees = ["redwood","bay","cedar","oak","maple"];
trees[3]=undefined;
if (3 in trees) {
// этот участок кода выполнится
}
const trees = ["redwood", "bay", "cedar", "oak", "maple"];
trees[3] = undefined;
console.log(3 in trees); // true
```

## Проблема кроссбраузерности
Expand Down