jockeyjs icon indicating copy to clipboard operation
jockeyjs copied to clipboard

Undefined callback

Open joaomilho opened this issue 8 years ago • 0 comments

I've searched the issues and couldn't find one, so...

I keep getting a TypeError: undefined is not a function (evaluating 'this.callbacks[t]()') from my minified Jockey file (triggerCallback:function(t){this.callbacks[t]()}). I suppose it relates to this, where for some reason id is undefined and/or points to a callback that doesn't exist:

        triggerCallback: function(id) {
            this.callbacks[id]();
        },

It happens on iOS (the user agent I got from Aibrake is Safari 12H321).

Did you have any error like this? Also, since I'm not much into Jockey code base, would it be ok to just wrap it into a try/catch?

Thanks!

joaomilho avatar Nov 26 '15 13:11 joaomilho