Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal.behaviors.d3
's attach
function should only be run once per-visualization. Either use .once()
or use a d3-processed
class to mark what has been through the draw process.
This can be seen on https://drupal.org/project/d3 with dreditor enabled.
Comment | File | Size | Author |
---|---|---|---|
#1 | attach_behaviors_once-d3-2255069-1.patch | 2.55 KB | markhalliwell |
Comments
Comment #1
markhalliwellI've fixed the original issue, but I also just took the time to rewrite this according to coding standards and best practices since it was so small.
Also attaching the related issue (which is where the "affects Drupal.org" tag came from).
Comment #3
asherry CreditAttribution: asherry commentedGreat code, and thanks for the comments and coding standards as well!
Comment #4
drummTagging so I can track deploying this for Drupal.org. A full release would be ideal, we avoid -dev whenever practical.
Comment #5
asherry CreditAttribution: asherry commentedI'll have a beta release in the next week or so. I'm waiting on one more feature that I'd like to add in that was shown at DrupalCamp in Stanford.
Comment #6
drummNow deployed on Drupal.org. Thanks for the quick responses on this all around.
Comment #7
Wim Leers#6: are you sure it's deployed? Five hard refreshes on http://drupal.org/project/drupal say it's still broken.
Comment #8
drummYep, something misfired in packaging and we got an old version. It is ready to deploy, probably later today along with some other CSS changes I'm working on.
Comment #9
Wim LeersGreat :)
Comment #10
drummShould be deployed now.
Comment #11
Wim LeersYes, fix confirmed — thanks!