- .on('crmLoad', function(e) {
- // This is drupal's old-school way of listening for 'load' type events. It has to be called manually.
- Drupal.attachBehaviors(e.target);
- })
- .on('crmUnload', function(e) {
- // This function doesn't exist in D6 so call conditionally
- if (typeof Drupal.detachBehaviors === 'function') {
- Drupal.detachBehaviors(e.target);
- }
- })