title: Operator Overloading Javascript? (def.js)
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3245639/javascript-syntax-i-havent-seen-till-now-what-does-it-do-really">Javascript syntax I haven&rsquo;t seen till now, what does it do really?</a>  </p>
  </blockquote>
  
  
  
  <p>Just saw <a href="http://github.com/tobeytailor/def.js" rel="nofollow noreferrer">http://github.com/tobeytailor/def.js</a> today, and I don't understand how this works:</p>
  
  <pre><code>def ("Ninja") &lt;&lt; Person ({
      init: function(name){
          this._super();
      },
  
      kick: function(){
          this.speak("I kick u!");
      }
  });
  </code></pre>
  
  <p>Looking through the code for def.js, I don't see anything mentioning the <code>&lt;&lt;</code> operator. How is this pseudo operator overloading happening?</p>