Can you use a simple flag: 'recommend' directly. In confirm, you would have: 

```javascript
{
  title: '...',
  callback: function(){ ... },
  recommend : true
};
```
Because here, you missed the init. of confirmStyle.
This broke the use of CustomDialog.

But if you set by default the "danger" class it should work.

```javascript
yes.className = confirm.recommend ? 'recommend' : 'danger';
```