title: Call function in prototype from other prototype
body: <p>I have two prototypes in my jquery script :</p>
  
  <pre><code>script1.prototype.initScript = function() {
    //first one
     this.saveGrid = function () {
     alert("here");
   }
  };
  script1.prototype.otherFunction = function () {
   //second
   //script1.initScript.saveGrid ?
  };
  </code></pre>
  
  <p>I'd like to call <code>saveGrid</code> in <code>otherFunction</code>. How can I do that?</p>
  
  <p>Edit :
  And there ?</p>
  
  <pre><code>script1.prototype.initScript = function() {
    //first one
     this.saveGrid = function () {
     alert("here");
   }
  };
  script1.prototype.otherFunction = function () {
   //second
      $('button').on("click", function(){
       //call savegrid here
     });
  };
  </code></pre>
  
  <p>Thanks.</p>