title: How do you call a function from a jQuery controller?
body: <p>I'm using JavascriptMVC and have a controller of the form</p>
  
  <pre><code>$.Controller.extend('AppName.Controllers.ControllerName',
  {
    onDocument: true
  }
  {
    initControllerName: function() {
      ...
    },
    testFucntion1() {
      alert('yeah!!');
    }
  });
  </code></pre>
  
  <p>and I'd like to be able to call the function testFunction1() from the page generated by my view.</p>
  
  <p>I found <a href="https://stackoverflow.com/questions/4623728/call-controller-in-javascriptmvc">this question</a> which seems to be asking the same thing, but I wasn't able to figure it out with the answer provided there.</p>
  
  <p>I've tried</p>
  
  <pre><code>$('#controllername').testFunction1();
  $('#ppame_controllername').testFunction1();
  $('#ppame_controllers.controllername').testFunction1();
  </code></pre>
  
  <p>without success. </p>
  
  <p>Thanks for your help!!</p>