uxebu/bonsai — pull request #102 by padolsey (2012-10-04 14:50:21+00:00)
Title: Mouse button event properties and context-menu disabler

In this pull request:

* `stage.disableContextMenu` and `stage.enableContextMenu`
* `bonsai.run(..., ..., { disableContextMenu: true })` option added
* Small change to facilitate above things: Renderer now expect 4th argument to be options object with following properties:
* allowEventDefaults (was previously 4th arg to Renderer)
* fpsLog (was previously 5th arg to Renderer)
* disableContextMenu
* Mouse button event properties for detecting which mouse-button was pressed. E.g.

```js
stage.on('pointerdown', function(e) {
e.isRight; // => true/false
e.isMiddle; // => true/false
e.isLeft; // => true/false
});
```