Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Uncaught TypeError: a.indexOf is not a function” error on load #27

Open
mimouni opened this issue Nov 28, 2017 · 2 comments
Open

Uncaught TypeError: a.indexOf is not a function” error on load #27

mimouni opened this issue Nov 28, 2017 · 2 comments

Comments

@mimouni
Copy link

mimouni commented Nov 28, 2017

This error might be caused by jquery event aliases like .load, .unload or .error deprecated since jQuery 1.8. Look for these aliases in your code and replace them with .on() to register listeners instead. Example:
fakeLoader.js [line:120]
$(window).load(function(){...});

becomes:

$(window).on('load', function(){ ...});

@itsDZhang
Copy link

itsDZhang commented Dec 13, 2017

I'm having this issue as well and thanks!

@louisnelza
Copy link

Simple update required to the repo :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants