title: When I use Events in Parse the listener callback is not executed, after calling the trigger with the event
body: <p>I am using Parse SDK for BackboneJS and when I try to use Events, by listening to an event like this</p>
  
  <pre><code>object.on 'OnRender', -&gt;
     if sessionData["is-pilot"] is "true"
      $("#notifications-list").remove()
      $("#messages-list").remove()
      $("#buidler-list").remove()
      $("#invoice-menu").remove()
      $("#logs-menu").remove()
      $(".piloty").remove()
    $(".navbar-toggle").on "click", -&gt;
      if $("html").hasClass("nav-open")
        $("html").removeClass "nav-open"
        $("body").removeClass "nav-open"
      else
        $("html").addClass "nav-open"
        $("body").addClass "nav-open"
    LoadBrandObjects.loadBrandProductTypes()
    LoadBrandObjects.loadBrandStores()
    LoadBrandObjects.loadBrandProducts()
  </code></pre>
  
  <p>And triggering the event in this function:</p>
  
  <pre><code>loadNavigationBar = -&gt;
    $(".header").load "templates/app-nav-part.html", -&gt;
    logoURL = sessionData["brand-logo-url"] or 'images/ta3rifah1.png'
  
    brandName = sessionData["brand-name"] or 'Ta3rifah Client'
    if brandName.length &gt; 30
      brandName = "#{brandName.slice(0,27)}..."
    $("#profile-menu").html "
      &lt;img  class=\"js-brand-logo\" width=\"34\" height=\"34\" src=\"#{logoURL} \" /&gt; 
      &lt;div class=\"js-header-brand-name inline-block \"&gt;#{brandName}&lt;/div&gt;
      &lt;b class=\"caret\"&gt;&lt;/b&gt;
    "  
    customizeNavBarForPackages()
    customizeNavBarForUser()
    # where I trigger the event ----------*******---------------
    object.trigger 'OnRender'
  </code></pre>
  
  <p>and the object extends Parse events:</p>
  
  <pre><code>object = {};
  _.extend(object, Parse.Events);
  </code></pre>
  
  <p>But, the callback is not executed, even after the event is triggered. </p>
  
  <p>I've followed their <a href="https://parse.com/docs/js/api/symbols/Parse.Events.html" rel="nofollow">example</a> in the docs. Is there anything that could block the event from being triggered or listened to? am I using it in a wrong way?</p>
  
  <p>Here is my <a href="https://gist.github.com/NouranMahmoud/53135987f9e65c8b4022" rel="nofollow"> full module</a>. It runs smoothly without errors. But, the callback of <code>on</code> function isn't executed.</p>