title: Event listener on non-DOM elements
body: <p>I'm trying to implement a little MVC framework and now I'm implementing the view-model binder, I mean, when the model changes, trigger a refresh/render/whatever on the model. So, I need an event listener on a object:</p>
  
  <pre><code>model.on("customEvent",appendItem);
  
  $("#button").on("click",function(){
      model.add(item);
      model.trigger("customEvent");
  });
  
  function appendItem(item) {
     $("#content").append(item.toHTML());
  }
  </code></pre>
  
  <p>So how can I create my event listener on objects?</p>