rollbar/rollbar.js — pull request #17 by kmontag (2014-03-04 07:24:17+00:00)
Title: Allow non-functions to be passed to Rollbar.wrap

`Rollbar.wrap` currently returns a function that errors out immediately (with "has no method 'apply'") when passed a non-function. This causes errors when, for example, `addEventListener` is called with an object implementing `EventListener` (https://developer.mozilla.org/en-US/docs/Web/API/EventListener) rather than a plain function.