ivaynberg/select2 — pull request #552 by ndbroadbent (2012-11-04 23:15:47+00:00)
Title: Allow formatResult function to return false in order to remove the option

The only change is a `if (formatted!==false) {` block around the indented code.

This would allow us to hide `disabled` options by defining the following `formatResult` function:

```javascript
formatResult: function(object){
if object.element.disabled { return false; }
}
```