summaryrefslogtreecommitdiffstatshomepage
path: root/core/misc/announce.js
diff options
context:
space:
mode:
authorAlex Pott <alex.a.pott@googlemail.com>2015-04-19 17:30:43 +0200
committerAlex Pott <alex.a.pott@googlemail.com>2015-04-19 17:30:43 +0200
commit49a1b846ec4b8664cadb52afcc15aadc9e295050 (patch)
treeeef94487c1364f108cce77a37b7b3b9b2f79816a /core/misc/announce.js
parent6cd48a6d5d2295729a1f237bf297e0bb83926771 (diff)
downloaddrupal-49a1b846ec4b8664cadb52afcc15aadc9e295050.tar.gz
drupal-49a1b846ec4b8664cadb52afcc15aadc9e295050.zip
Issue #2461531 by nod_, lauriii, pguillard: ESlint 0.18.0 compatibility and new rule
Diffstat (limited to 'core/misc/announce.js')
-rw-r--r--core/misc/announce.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/misc/announce.js b/core/misc/announce.js
index 00ce14b1188..9aafbbcbce4 100644
--- a/core/misc/announce.js
+++ b/core/misc/announce.js
@@ -49,7 +49,8 @@
// Create an array of announcement strings to be joined and appended to the
// aria live region.
- for (var i = 0, il = announcements.length; i < il; i++) {
+ var il = announcements.length;
+ for (var i = 0; i < il; i++) {
announcement = announcements.pop();
text.unshift(announcement.text);
// If any of the announcements has a priority of assertive then the group