// confirm will always return false on the first call
// to cancel click handler
return false;
}
```
The way the module comes by default is by using the native browser's confirm dialog window that obviously stops the asynchronous execution of Javascript, but when you try to use "<strong>bootbox::confirm</strong>" method, that is not happening as the callback of the plugin does not return until the user clicks on one of the dialog's buttons.
Thats the reason we override the "<strong>yii::confirm</strong>", because we require the reference of the DOM object in order to call "<strong>yii::handleAction</strong>" properly. But is "<strong>yii::allowAction</strong>" the method who receives that reference, and thats why we had to override that method as well.