Reputation: 12367
First of all, please don't think that I asked this question before even bothering to search for the solution. I'm aware that there're lots of threads about this issue both on SO and all over the internet. But the thing is, everybody keeps saying It's because the browser object was deprecated in jquery 1.3 and removed in 1.9+
. But there's no single place I refer to $.browser
object in my own code. I get this Cannot read 'opera' property of undefined
error inside jquery-ui (v 1.8.24) file. I've recently decided to fire a full NugGet update to my project in Visual Studio. Among them was jQuery too. Now, it seems jQuery UI was not updated in accordance with the new jQuery. What do I have to do to get rid of this problem?
EDIT: I also get this.element.propAttr
error in the same file.
ADDED
Upvotes: 0
Views: 387
Reputation: 12367
I finally realized that this was not a problem with jquery but it was a problem with NuGet package installer not doing its job complete. When I looked inside the scripts folder, I found out that both newer-1.11.4 and older -1.8.24 presented. And as the 1.8.24 version was the last loaded one any call to jQueryUI ended up in that file which tried to reference non-existing-anymore $.browser
object. I thought Nuget installer would be smart enough to remove any older files. Just removing those old files solved the problem.
Upvotes: 1