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

wim leers’s picture

Status: Active » Reviewed & tested by the community

The 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.

wim leers’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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