title: Drupal 7: Drupal.behaviors isn't running
body: <p>I've got a custom module I'm creating called touchpoints. At the top of the touchpoints.module file I have the following:</p>
  
  <pre><code>global $base_path;
  
  $my_settings = array(
    'basepath' =&gt; $base_path,
    'module_path' =&gt; drupal_get_path('module','touchpoints')
   );
  
  drupal_add_js(array('touchpoints' =&gt; $my_settings), 'setting');
  drupal_add_js(drupal_get_path('module','touchpoints') . '/touchpoints.js');
  </code></pre>
  
  <p>Then in my touchpoints.js file I have the following:</p>
  
  <pre><code>Drupal.behaviors.touchpoints = function(context){
      $('.form-item-touchpointlocation').css('display','block');
      $('.form-item-touchpointcategory').css('display','none');
  }
  </code></pre>
  
  <p>It's my understanding that anything inside the Drupal.behaviors call should run when the DOM finishes loading similar to a $(document).ready call. However, this code isn't being executed. Just to be sure I put an alert in the function as well, and it wasn't being triggered. Is there a step I'm missing?</p>