title: How can I disable/stop a jQuery function?
body: <p>I have a JavaScript file with jQuery.pep (Drag and Drop jQuery plugin). I'm starting the plugin With this code:</p>
  
  <pre><code>Drag.pep();
  </code></pre>
  
  <p>Now, I don't know how to disable/stop it. Here is a code section from the file: <code>jquery.pep.js</code>. I think it might help you to answer:</p>
  
  <pre><code>$[pluginName] = {
    stopAll: function () {
      disable = true;
      return this;
    },
    startAll: function () {
      disable = false;
      return this;
    }
  };
  </code></pre>
  
  <p>The Variable "pluginName" is "pep". Here is the <a href="https://github.com/briangonzalez/jquery.pep.js" rel="nofollow">full jQuery pep code</a> (github):</p>
  
  <p>Please help.</p>
  
  <p>Thank you!</p>