code: function ContentDialog_fireBeforeHide(dismissalResult) {
                      return this._fireEvent(EventNames.beforeHide, {
                          detail: { result: dismissalResult },
                          cancelable: true
                      });
                  }
docs: Calls into arbitrary app code