title: How To Extend mail.Chatter Widget in Javascript Odoo 10
body: <p>I want to add a new event to "mail.Chatter" widget(mail/static/src/js/chatter.js) in Odoo 10.so I want to extend the "mail.Chatter" widget.</p>
  
  <pre><code>odoo.define('override_chatter.override_chatter', function (require) {
  "use strict";
  
  var Chatter = require('mail.Chatter');
  
  console.log('Chatter', Chatter)
  
  
  
  });
  </code></pre>
  
  <p>But from the console, I got some error. Please check below.</p>
  
  <pre><code>Chatter function Class(){if(this.constructor!==OdooClass){throw new Error("You can only instanciate objects with the 'new' operator");}
  </code></pre>
  
  <p>Please correct me if am wrong.Is there any other method to extend this "mail.Chatter" widget?</p>