makeusabrew/bootbox — Issue #22: Bug: .dialog with backdrop
Author: FGRibreau
Created: 2012-02-29 21:01:52+00:00
State: open

### Issue

```javascript
bootbox.modal('a',{backdrop:false}); // still add a backdrop
```

### Workaround

In [bootbox.js#L382](https://github.com/makeusabrew/bootbox/blob/master/bootbox.js#L382)

```javascript
"backdrop" : options.backdrop || true,
```

should be something like

```javascript
typeof options.backdrop !== 'undefined' ? !!options.backdrop : true,
```

But I think that the best way could be to pass `options` directly to `.modal()`. Since `backdrop` is already set to `true` by default in bootstrap.js.