enyojs/enyo — pull request #854 by clinuz (2014-09-19 18:24:37+00:00)
Title: Fix for: ENYO-262

# Issue

When components add a named delegate method for an event and that happens to be an auto-generated event sender from the owner's `events` block, it does not pass the correct parameters. Most method dispatchers pass the _sender_ as the first parameter but the auto generated methods only accept an _event_ (object) parameter.

# Fix

Simply check to see if the dispatch function is of that form in the quickest, least-intrusive way possible. We do not want to decorate the methods since it is not necessary in this case.