twitter/bootstrap — Issue #2492: Custom loading button state
Author: vitalish
Created: 2012-03-09 22:52:35+00:00
State: open

I have the situation where my button has several loading states (loading, starting and stopping) but currently Button supports only one loading state ```$().button('loading')```.
To solve this problem I am using a small hack:

```javascript
$().data('loadingText', $().data('startingText'))
$().button('loading')
```
But I don't like using ```$().data()``` because it brakes encapsulation
I think the better way is to have something like:

```javascript
$.fn.button.defaults.loadingStates.push('starting')
$('btn').button('starting')
```
What do you guys think about this feature? Should I do the pull request for this?