Function calls in JavaScript
<p>I have defined a JavaScript object, inside which I have two functions <code>test1</code> and <code>test2</code>. </p>

<p>When I call  <code>test1</code> inside <code>test2</code> using <code>this.test1()</code>, it says </p>

<blockquote>
  <p><code>test1</code> is not a function</p>
</blockquote>

<p>When I call <code>test1</code> inside <code>test2</code> using <code>objectname.test1()</code> it works fine.</p>

<p>Any reason why I can not call the other function using <code>this</code>?</p>

<pre><code>    servicesFilteringObject = {

       init: function(){
         // Created Checkboxes dynamically and associated handleFilter on onclick of it

       },
       handlePrimeryContent: function(){
         // Some code

       },
      handleFilter : function(){
           servicesFilteringObject.handlePrimeryContent();// works
           this.handlePrimeryContent(); //does not work
      }
 }

    servicesFilteringObject.init();
</code></pre>
