flightjs/flight — pull request #257 by 6twenty (2014-05-08 00:06:51+00:00)
Title: Event data isn't passed to default event behaviour

Example: http://codepen.io/6twenty/pen/jBwtD

When triggering an event using the object syntax (https://github.com/flightjs/flight/blob/master/doc/base_api.md#thistriggerselector-eventtype--eventpayload), the `data` object will **not** be passed to the function defined on the `defaultBehavior` property.

However, if you bind to this event, your bound function **will** receive the `data` object.

I believe the source of this issue is this line: https://github.com/flightjs/flight/blob/master/lib/base.js#L144

```javascript
(this[defaultFn] || defaultFn).call(this);
```

Which can be changed to...

```javascript
(this[defaultFn] || defaultFn).call(this, event, data);
```

...and the `defaultBehavior` function now receives the correct (?) args. If the maintainers feel this is an acceptable fix, I'm happy to submit a pull request.