Irrelon/jquery-lang-js

jquery-lang.js: 80 Line Number 'fn undefined

Closed this issue · 6 comments

pvnkk commented

Uncaught TypeError: Cannot read property 'fn' of undefined
at Lang.init (jquery-lang.js:80)
at index.html:21

i have the same error !!!
anyone can have answer for this ??

Did you guys take a look at the code on line 80? It is extending jQuery. If $ is not defined then it will not work. You need to load jQuery first.

the problem not in $ sign .. its on 'fn' of iundefined !!!
the jquery already loaded

But the error is "Cannot read property 'fn' of undefined"

That means it is trying to access the 'fn' property of the $ object and cannot... which means that $ is undefined.

Fixed by af68d4a - the issue was that jQuery was no longer being passed into the lang library by the initial call so $ was undefined.

This was caused by a previous pull request. I've fixed the code. Please download the latest version.