title: issue in AjaxControlToolKit 0x800a138f - JavaScript runtime error
body: <p>i installed <code>AjaxControlToolKit 15.1</code> to use it with my asp.net website
  i include it in the <code>web.config</code> as assembly</p>
  
  <pre><code>&lt;add assembly="AjaxControlToolkit" /&gt;
  </code></pre>
  
  <p>i define it as a <code>control</code> with tagname</p>
  
  <pre><code>&lt;add assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagPrefix="cc1" /&gt;
  </code></pre>
  
  <p>this is the piece of code in my aspx page where i use elemnts of the toolkit</p>
  
  <pre><code>&lt;cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1"
  TabStripPlacement="TopRight" Width="23%" Font-Size="Large"&gt;
      &lt;cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="menu" &gt;
      &lt;/cc1:TabPanel&gt;&lt;/cc1:TabContainer&gt;
  </code></pre>
  
  <p>my website works properly, but when i navigate out of the page with ajax control it gives me this error </p>
  
  <blockquote>
    <p>Unhandled exception at line 1, column 56851 in
    <a href="http://localhost:6159/bundles/MsAjaxJs?v=c42ygB2U07n37m_Sfa8ZbLGVu4Rr2gsBo7MvUEnJeZ81" rel="nofollow">http://localhost:6159/bundles/MsAjaxJs?v=c42ygB2U07n37m_Sfa8ZbLGVu4Rr2gsBo7MvUEnJeZ81</a></p>
    
    <p>0x800a138f - JavaScript runtime error: Unable to get property 'length'
    of undefined or null reference</p>
  </blockquote>
  
  <p>and this error occurs exactly here </p>
  
  <blockquote>
    <p>$removeHandler(element, name, events[name]);</p>
  </blockquote>
  
  <p>here is the code</p>
  
  <pre><code>   removeHandlers: function(element, events) {
      // Removes a set of event handlers from an element
      // This is NOT the same as $clearHandlers which removes all delegates
      // from a DomElement. This rather removes select delegates 
      // from a specified element and has a matching signature as $addHandlers
      // "element" - the element to modify
      // "events" - the template object that contains event names and delegates
  
      for (var name in events) {
          $removeHandler(element, name, events[name]);
      }
  },
  </code></pre>
  
  <p>what to do please?</p>