title: Javascript error uncaught exception
body: <p>I am using a javascript file called  <code>pull.js</code>. It is using for pulldown refresh in Ipad but , when I use that other jquery and javascript stop working? It is giving the following uncaught exception error :</p>
  
  <blockquote>
    <p>"
    Error: uncaught exception: </p>
    
    <p>[Exception... "Not enough arguments"  nsresult: "0x80570001
    (NS_ERROR_XPC_NOT_ENOUGH_ARGS)"  location: "JS frame :: pull.js ::
    anonymous :: line 26"  data: no]
    "</p>
  </blockquote>
  
  <p>I am passing the content of this js file :</p>
  
  <pre><code>var PULL = function() {
      var content,
          pullToRefresh,
          refreshing,
          contentStartY,
          success,
          start,
          cancel,
          startY,
          track = false,
          refresh = false;
  
      var removeTransition = function() {
          //content.style['-webkit-transition-duration'] = 0;
      };
      return {
          init: function(o) {
              content = document.getElementById('content');
              pullToRefresh = document.getElementById('pull_to_refresh');
              refreshing = document.getElementById('refreshing');
              success = o.success;
              start = o.start;
              cancel = o.cancel;
  
              document.body.addEventListener('touchstart', function(e) {
                  e.preventDefault();
                  contentStartY = parseInt(content.style.top);
                  startY = e.touches[0].screenY;
              });
  
              document.body.addEventListener('touchend', function(e) {
                  if(refresh) {
                      //content.style['-webkit-transition-duration'] = '.5s';
                      content.style.top = '50px';
  
                      pullToRefresh.style.display = 'none';
                      refreshing.style.display = '';
  
                      success(function() { // pass down done callback
                          pullToRefresh.style.display = '';
                          refreshing.style.display = 'none';
                          content.style.top = '0';
                          content.addEventListener('transitionEnd', removeTransition);
                      });
  
                      refresh = false;
                  } else if(track) {
                      //content.style['-webkit-transition-duration'] = '.25s';
                      content.style.top = '0';
                      content.addEventListener('transitionEnd', removeTransition);
  
                      cancel();
                  }
                  track = false;
              });
  
              document.body.addEventListener('touchmove', function(e) {
                  var move_to = contentStartY - (startY - e.changedTouches[0].screenY);
                  if(move_to &gt; 0) track = true; // start tracking if near the top
                  content.style.top = move_to + 'px';
  
                  if(move_to &gt; 50) {
                      refresh = true;
                  } else {
                      //content.style['-webkit-transition'] = '';
                      refresh = false;
                  }
              });
          }
      };
  }();
  </code></pre>
  
  <p>Can anyone please help me.</p>