Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery: Error - matchExpr[type].exec is not a function

I was running against this error today. Resources on the internet that could point me in the right direction were very scarce.

Basically, after writing some JavaScript functions, all of jQuery's methods running on selectors would resuld in this error:

matchExpr[type].exec is not a function
like image 784
Qqwy Avatar asked Oct 11 '15 09:10

Qqwy


1 Answers

The reason this happened, is because I had extended Object.prototype. This breaks all looping functionality in jQuery. Read more here: Object.prototype is verboten.

like image 186
Qqwy Avatar answered Oct 20 '22 23:10

Qqwy