jashkenas/underscore — pull request #1692 by smarden1 (2014-06-19 02:20:15+00:00)
Title: proposal: bindAll should throw a reference error if a given method is undefined

If a given method is undefined, createCallback is going to return a function that will eventually throw an error when it is called. This is because createCallback returns a function that will evaluate to undefined.apply. If that's true, then it would be nice to catch these errors when we do the binding instead of when we call the unusable functions.

Here's an example...
https://gist.github.com/smarden1/b08f84fd3b1c363d403d

Additionally, I like getting the erroneous method name in my exception as bindAll can take a long list of functions and hunting down the erroneous one in that list is a bummer.