title: Second parameter never arrives
body: <p>I have created a custom trigger with jQuery that accepts two parameters, but the second never arrives.</p>
  <pre><code>//firstly
  $(Crafty).bind('onTsxLoaded', function (event, tsx, firstSpriteId) {
      console.log(&quot;tsx&quot;, tsx);
      console.log(&quot;firstspriteid&quot;, firstSpriteId);
  }
  
  //&lt;snip&gt;
  success: function (xml) {
     var firstSpriteId = tileset.attr(&quot;firstgid&quot;);
     console.log(&quot;done loading ts&quot;, firstSpriteId);
     $(Crafty).trigger('onTsxLoaded', xml, firstSpriteId);
  }
  </code></pre>
  <p>yields:</p>
  <pre><code>&quot;done loading ts&quot; 1
  &quot;tsx&quot; object
  &quot;firstspriteid&quot; undefined
  </code></pre>
  <p>Why is firstspriteid 1 before trigger and undefined right after?</p>