Closed (fixed)
Project:
Hierarchical Select
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2012 at 15:44 UTC
Updated:
16 Sep 2013 at 12:41 UTC
A "naked" DOM object should be passed to Drupal.attachBehaviors. Currently it gives a function returning a jQuery object.
this line in: http://drupalcode.org/project/hierarchical_select.git/blob/refs/heads/7....
Drupal.attachBehaviors(Drupal.HierarchicalSelect.context);
should be replaced with:
Drupal.attachBehaviors(Drupal.HierarchicalSelect.context()[0]);
This is currently holding back a core patch: #1507954: Global selector in states.js brakes some scripts.
Thanks
Comments
Comment #1
wim leersThe patch was committed, fortunately, so it's not really holding back the core patch anymore.
I'll commit the fix today and issue a new release.
Comment #2
wim leershttp://drupalcode.org/project/hierarchical_select.git/commit/b4add8c