Make it optional to wrap in a behavior. While it's best practice, there may be cases where the JS snippet doesn't need to be wrapped (not jQuery) or needs to be loaded in the header.

Comments

jerdavis created an issue. See original summary.

  • jerdavis committed 15c24d0 on 8.x-1.x
    Issue #2986741 by jerdavis: Make the "wrapping in a Drupal Behavior"...
  • jerdavis committed f6b7797 on 8.x-1.x
    Issue #2986741 by jerdavis: Make the "wrapping in a Drupal Behavior"...
jerdavis’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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