code: function ContentDialog_fireEvent(eventName, options) {
                      options = options || {};
                      var detail = options.detail || null;
                      var cancelable = !!options.cancelable;
  
                      var eventObject = _Global.document.createEvent("CustomEvent");
                      eventObject.initCustomEvent(eventName, true, cancelable, detail);
                      return this._dom.root.dispatchEvent(eventObject);
                  }
docs: Calls into arbitrary app code