title: initCustomEvent pass data for method doesn't work anymore
body: <p>I wrote a firefox extension and for interation data between privilege and non-privilege pages I use this snipped code </p>
  
  <pre><code>    //Listen for the event
      window.addEventListener("MyEvent", function(evt) {
          console.log(evt.detail);
      }, false);
  
      //Dispatch an event
      var evt = document.createEvent("CustomEvent");
      evt.initCustomEvent("MyEvent", true, true, {
        name : 'activate',
        method : function() {
          //...
        }    
      });
      window.dispatchEvent(evt);
  </code></pre>
  
  <p>and everything go well after I update my FireFox to version 32.0.1, at this time my FireFox doesn't work and I try to find the error and discover that the method I passed to MyEvent always null. Why?</p>
  
  <p>Is it possible that in the new version of FireFox I couldn't pass function any more or I should do something newer for solve my problem?</p>