The misunderstanding that is tripping you up at the moment is that the purpose of jquery-migrate-1.4.1.js
is to install a few backward focused workarounds to make early jQuery code work in the more up to date jQuery while also complaining into your console.log so you can fix it. It is not actually changing your code. A couple of pointers to help you migrate based on your comments:
I see for example: "JQMIGRATE: jQuery.browser is deprecated". That is odd though, because the source of that error is jquery-migrate-1.4.1.js:45 and that is the jquery-migrate-1.4.1.js file, not that I am using jQuery.browser in my code.
The line doing the logging is in the jquery-migrate-1.4.1.js
so the error appears to point to that file, however, the line calling jQuery.browser
might be in a plugin you are loading (this was common in early jQuery days where people wrote browser-specific hacks) You can try and search for .browser
in all of your linked .js
files (even the minified ones) to at least isolate the plugin and then try to find alternatives.
I see things such as: "jquery-migrate-1.4.1.js:45 JQMIGRATE: jQuery.fn.size() is deprecated; use the .length property". But I cannot find jQuery.fn.size() in my source code.
The approach of jQuery.fn.size()
might show up in your code like this:
$('li.items').size()
jQuery.fn
is just the object name of a jQuery element's functions. Because your jQuery object is based on a jQuery selector you wrote it might be hard to search for it, instead look for something like .size()
and if it shows up to the right of a jQuery selector then try and replace it with just .length
(no parentheses, as length
is just a property).
If you have other questions you are probably better off posting them as new questions so they can get more direct and generally helpful answers.