Good question. :) @peterflynn maybe you can also chime in. Since we can't overload the constructor, maybe we can just leave the argument in and change line 312 to:

```
mode = this._getModeFromDocument() || mode;
```

Not the cleanest idea but at the moment I'm drawing a blank.