documentcloud/backbone — Issue #754: Accept functions in delegateEvents
Author: sanbor
Created: 2011-11-21 20:48:38+00:00
State: open

delegateEvents only accepts an string with the name of the method to call as callback. By just checking if the method variable is a function, we can use pointers/functions in the events assignations.