Release notes: Updated through 2016-12-06
[civicrm-core.git] / js / crm.drupal.js
index 32ed437423d3933cb60c5b2753285bfd55a80931..2f14c499216e2e38bba0c202fc3a4d9b8cc9201d 100644 (file)
@@ -1,16 +1,6 @@
 // http://civicrm.org/licensing
 CRM.$(function($) {
   $(document)
-    .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);
-      }
-    })
     .on('dialogopen', function(e) {
       // D7 hack to get the toolbar out of the way (CRM-15341)
       $('#toolbar').css('z-index', '100');