Could we move this function out of this scope?

```js
var defaultDialogCb = function defaultDialogCb() {
    ConfirmDialog.hide();
}
```

or

```js
var defaultDialogCb = ConfirmDialog.hide;
```