title: Jquery TypeError
body: <p>In jquery - what does <code>(d||"").split</code> do?</p>
  
  <p>I've got a jqtouch webapp which throws up the following error from the jquery file:</p>
  
  <blockquote>
    <p>TypeError: Result of expression '(d||"").split' [undefined] is not a function.</p>
  </blockquote>
  
  <p>I've tried different versions of jquery but no joy. Is it something important or can I ignore it?</p>
  
  <p>edit: This is the part of the function it comes from. I'm not really sure how much to include here but its line 68 from jquery.min: </p>
  
  <pre><code>if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");
  </code></pre>
  
  <p>edit 2:
  I think its got to be caused by this function here from photoswipe.js:</p>
  
  <pre><code>// Set up the options 
      Code.PhotoSwipe.Current.setOptions(opts);
  
  
      // Tell PhotoSwipe about the photos
      Code.PhotoSwipe.Current.setImages(thumbEls);
  
  
      if (useEventDelegation){
  
          /*
           * Use event delegation rather than setting a click event on each 
           * thumb element.
           */
          containerEl.addEventListener('click', function(e){
  
              if (e.target === e.currentTarget){
                  return;
              }
  
              e.preventDefault();
  
              var findNode = function(clickedEl, targetNodeName, stopAtEl){
  
                  if (Util.isNothing(clickedEl) || Util.isNothing(targetNodeName) || Util.isNothing(stopAtEl)){
                      return null;
                  }
  
                  if (clickedEl.nodeName === targetNodeName){
                      return clickedEl;
                  }
  
                  if (clickedEl === stopAtEl){
                      return null;
                  }
  
                  return findNode(clickedEl.parentNode, targetNodeName, stopAtEl);
              };
  
  
              var clickedEl = findNode(e.target, thumbEls[0].nodeName, e.currentTarget);
  
              if (Util.isNothing(clickedEl)){
                  return;
              }
  
              showPhotoSwipe(clickedEl);
  
          }, false);
  
      }
      else{
  
          // Add a click event handler on each element
          for (var i = 0; i &lt; thumbEls.length; i++){
  
              var thumbEl = thumbEls[i];
              thumbEl.addEventListener('click', onClick, false);
  
          }
  
      }
  
      return thumbEls;
  
  };
  swipew
  </code></pre>