title: How to call method inside class?
body: <p>I have this button in html:</p>
  
  <pre><code>&lt;button id="btnCell" onclick="CellClicked(1, 1, false)"&gt;&lt;/button&gt;
  </code></pre>
  
  <p>And this Javascript:</p>
  
  <pre><code> $(function() {       
      $( "#txtSearch" ).autocomplete({
        source: function( request, response ) {
           //some logic
        },
        minLength: 2,
        select: function( event, ui ) {
          log( "Selected: " + ui.item.value + " aka " + ui.item.id );
          },
      });
  
    function CellClicked(x, y, selXml) {          
          //some logic
      }        
  });
  </code></pre>
  
  <p>Whenever I click button above I get this error:</p>
  
  <pre><code>Uncaught ReferenceError: CellClicked is not defined
  </code></pre>
  
  <p>It happens because the method encapsulated in class, I know that I can drag the method out of the class and it will work.</p>
  
  <p>But I want the method to be encapsulated those I ask the question how can I call the function when method CellClicked  encapsulated?</p>