Bug report: this plugin breaks Safari mobile browsing
-
Hi –
I am writing to let you know you have a bug in your code that has the effect of confusing Safari Mobile to the point that mobile navigation is completely broken. The bug disappears when your plugin is disabled so you are definitely the culprit.
The issue is that e.indexOf should instead be e.toString().indexOf in the following , S.fn.load = function(e, t, n) { var r, i, o, a = this, s = e.indexOf(" "); return -1 < s && (r = yt(e.slice(s)), e = e.slice(0, s)), m(t) ? (n = t, t = void 0) : t && "object" == typeof t && (i = "POST"), 0 < a.length && S.ajax({ url: e, type: i || "GET", dataType: "html", data: t }).done(function(e) { o = arguments, a.html(r ? S(" ").append(S.parseHTML(e)).find(r) : e) }).always(n && function(e, t) { a.each(function() { n.apply(this, o || [e.responseText, t, e]) }) } ), this } Looks related to https://github.com/imakewebthings/waypoints/issues/620 Here is the stack trace: query.min.js?ver=3.6.3:2 Uncaught TypeError: e.indexOf is not a function at S.fn.load (jquery.min.js?ver=3.6.3:2:85207) at waypoints.js:515:15 at waypoints.js:20:14 at waypoints.js:14:3 at waypoints.js:520:4
- The topic ‘Bug report: this plugin breaks Safari mobile browsing’ is closed to new replies.