CRM-15346 - Call Drupal.detachBehaviors conditionally for D6 support