Currently the wrapper function in file "js/token.js" looks like this:

(function ($) {

  Drupal.behaviors.tokenTree = {};

})(jQuery, drupalSettings);

I think it should looks like this:

(function ($, Drupal, drupalSettings) {

  Drupal.behaviors.tokenTree = {};

})(jQuery, Drupal, drupalSettings);
Members fund testing for the Drupal project. Drupal Association Learn more


Sweetchuck created an issue. See original summary.

Sweetchuck’s picture

Status: Active » Needs review
301 bytes
rjjakes’s picture

Agreed, as per:

I tested the patch and it applies.

rjjakes’s picture

Status: Needs review » Reviewed & tested by the community
Berdir’s picture

Status: Reviewed & tested by the community » Fixed


  • Berdir committed 083fed6 on 8.x-1.x authored by Sweetchuck
    Issue #2668568 by Sweetchuck: JavaScript closure variables

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.