title: "Cannot read property ... of undefined" in jQuery 1.11.0 -- how can I satisfy jQuery's requirement?
body: <p>I was (trying to) load jQuery 1.9.1 un-minified from CDN: "Uncaught TypeError: Cannot call method 'call' of undefined jquery-1.9.1.js:648". So I updated the reference, and am apparently getting an equivalent error, now for minified:</p>
  
  <pre><code>Uncaught TypeError: Cannot call method 'call' of undefined jquery-1.11.0.min.js:2
  n.extend.each jquery-1.11.0.min.js:2
  (anonymous function) site.js:26
  j jquery-1.11.0.min.js:2
  k.fireWith jquery-1.11.0.min.js:2
  n.extend.ready jquery-1.11.0.min.js:2
  K jquery-1.11.0.min.js:2
  </code></pre>
  
  <p>The page is at <a href="http://ccachicago.pragmatometer.com" rel="nofollow">http://ccachicago.pragmatometer.com</a>; the first SCRIPT tag is:</p>
  
  <pre><code>&lt;script src="//code.jquery.com/jquery-1.11.0.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>(The page is POSH plus CSS styling and a light touch of JavaScript dust; it's simple by modern webapp standards...)</p>
  
  <p>--EDIT--</p>
  
  <p>Regarding my code, the page has, as its only script contents:</p>
  
  <pre><code>    &lt;script src="//code.jquery.com/jquery-1.11.0.min.js"&gt;&lt;/script&gt;
      &lt;script src="/media/js/site.js"&gt;&lt;/script&gt;
  
          &lt;script&gt;
                          function slideshow()
              {
              var width = (jQuery(window).width()  - 70) * .8;
              var factor = width / 1024;
              var height = 420 * factor;
              jQuery('#slideshow').attr('height', height + 'px');
              jQuery('#slideshow').attr('width', width + 'px');
              };
          slideshow();
          jQuery(window).resize(slideshow);
          &lt;/script&gt;
  </code></pre>
  
  <p>The site.js file has:</p>
  
  <pre>
  /**
   * Override jQuery.fn.init to guard against XSS attacks.
   *
   * See http://bugs.jquery.com/ticket/9521
   */
  (function () {
    var jquery_init = jQuery.fn.init;
    jQuery.fn.init = function (selector, context, rootjQuery) {
      // If the string contains a "#" before a "= 0) {
          var bracket_position = selector.indexOf(' hash_position) {
            throw 'Syntax error, unrecognized expression: ' + selector;
          }
        }
      }
      return jquery_init.call(this, selector, context, rootjQuery);
    };
    jQuery.fn.init.prototype = jquery_init.prototype;
  })();
  
  jQuery(function()
      {
      jQuery.each(jQuery('h1').add('h2').add('h3').add('h4').add('h5').add('h6').add('ul#navigation')).function(index, element)
          {
          var bounds = jQuery(element).offset();
          var image_left = bounds.left;
          var image_top = bounds.top + bounds.height;
          var image = jQuery('<img src="/media/images/foldback.png">');
          image.style.position = 'absolute';
          image.style.top = image_top + 'px';
          image.style.left = image_left + 'px';
          }
     function set_search_width()
          {
          var offset = 950;
          var width = jQuery(window).width() - offset;
          jQuery('#menu-search').css('max-width', width + 'px');
          jQuery('#menu-search').css('width', width + 'px');
          jQuery('#query').width(width - 80);
          }
      jQuery(window).resize(set_search_width);
      set_search_width();
      });
  sfHover = function()
      {
      var sfEls =
      document.getElementById('nav').getElementsByTagName('li');
      for(var index = 0; index 
  
  <pre><code>/**
   * Override jQuery.fn.init to guard against XSS attacks.
   *
   * See http://bugs.jquery.com/ticket/9521
   */
  (function () {
    var jquery_init = jQuery.fn.init;
    jQuery.fn.init = function (selector, context, rootjQuery) {
      // If the string contains a "#" before a "&lt;", treat it as invalid HTML.
      if (selector &amp;&amp; typeof selector === 'string') {
        var hash_position = selector.indexOf('#');
        if (hash_position &gt;= 0) {
          var bracket_position = selector.indexOf('&lt;');
          if (bracket_position &gt; hash_position) {
            throw 'Syntax error, unrecognized expression: ' + selector;
          }
        }
      }
      return jquery_init.call(this, selector, context, rootjQuery);
    };
    jQuery.fn.init.prototype = jquery_init.prototype;
  })();
  
  jQuery(function()
      {
      jQuery.each(jQuery('h1').add('h2').add('h3').add('h4').add('h5').add('h6').add('ul#navigation')).function(index, element)
          {
          var bounds = jQuery(element).offset();
          var image_left = bounds.left;
          var image_top = bounds.top + bounds.height;
          var image = jQuery('&lt;img src="/media/images/foldback.png"&gt;');
          image.style.position = 'absolute';
          image.style.top = image_top + 'px';
          image.style.left = image_left + 'px';
          }
     function set_search_width()
          {
          var offset = 950;
          var width = jQuery(window).width() - offset;
          jQuery('#menu-search').css('max-width', width + 'px');
          jQuery('#menu-search').css('width', width + 'px');
          jQuery('#query').width(width - 80);
          }
      jQuery(window).resize(set_search_width);
      set_search_width();
      });
  sfHover = function()
      {
      var sfEls =
      document.getElementById('nav').getElementsByTagName('li');
      for(var index = 0; index &lt; sfEls.length; index++)
          {
          sfEls[i].onmouseover = function()
              {
              this.className += " sfhover";
              }
          sfEls[i].onmouseout = function()
              {
              this.className = this.className.replace(new RegExp(
                " sfhover\\b"), "");
              }
          }
      }
  if (window.attachEvent)
      {
      window.attachEvent("onload", sfHover);
      }
  </code></pre>
  
  <p></pre></p>