December 8, 2016
Here’s a quick tip that should save you some hair and a few debugging hours when dealing with errors generated during Backbone.Events pub/sub. Monkeypatch Backbone.trigger with a try/catch to see errors that were previously trapped like so: var oldTrigger = Backbone.trigger; Backbone.trigger = function () { try { oldTrigger.apply(Backbone, arguments); } catch (e) { console.error(e);...
Read More