Commit 21eecff2 authored by webchick's avatar webchick

Issue #1858576 follow-up by David_Rothstein: Better name for the onceCheck variable.

parent 31d4f1b0
......@@ -46,10 +46,10 @@ var mql = {
Drupal.behaviors.toolbar = {
attach: function(context) {
var options = $.extend(this.options, drupalSettings.toolbar);
var $onceCheck = $(context).find('#toolbar-administration').once('toolbar');
if ($onceCheck.length) {
// Assign $onceCheck to $toolbar in the closure.
$toolbar = $onceCheck;
var $toolbarOnce = $(context).find('#toolbar-administration').once('toolbar');
if ($toolbarOnce.length) {
// Assign the $toolbar variable in the closure.
$toolbar = $toolbarOnce;
// Add subtrees.
// @todo Optimize this to delay adding each subtree to the DOM until it is
// needed; however, take into account screen readers for determining
......
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