Both the frontend and backend javascripts rely on Drupal.behaviors.attach which can be called multiple times on a page with AJAX requests. Unfortunately the same code is run every time (like the loading of the sprite) whereas it should only be run once producing duplicated DOM elements or events.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | icon_select-js-load-multiple-times-the-same-resource-3041834-2.patch | 1.38 KB | aerzas |
Comments
Comment #2
aerzas commentedHere is a proposed patch.
Comment #3
aerzas commentedComment #5
ayalon commentedFixed.
Comment #6
ayalon commentedComment #7
ayalon commented