Commit 560b8091 authored by alexpott's avatar alexpott
Browse files

Issue #1684876 by droplet | nod_: JSHint toolbar.

parent fd6594be
......@@ -54,9 +54,12 @@ Drupal.behaviors.toolbar = {
// @todo Optimize this to delay adding each subtree to the DOM until it is
// needed; however, take into account screen readers for determining
// when the DOM elements are needed.
if (Drupal.toolbar.subtrees) {
for (var id in Drupal.toolbar.subtrees) {
$('#toolbar-link-' + id).after(Drupal.toolbar.subtrees[id]);
var subtrees = Drupal.toolbar.subtrees;
if (subtrees) {
for (var id in subtrees) {
if (subtrees.hasOwnProperty(id)) {
$('#toolbar-link-' + id).after(subtrees.id);
}
}
}
// Append a messages element for appending interaction updates for screen
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment