I often re-use old code because it's mostly bug free and has withstood the test of time.
I recently copied a jQuery snippet from a perfectly working old project and was shocked to find that a particular piece of AJAX functionality wasn't working anymore. It turned out that there was a breaking change in the jQuery.ajax() method in jQuery library version 1.5 and the code was failing because the original sample ran an older version of jQuery (1.4.2)!
The jQuery Blog appears to be the official place where breaking changes are announced along with the news of new releases.
Some jQuery plugins too will only work with a specific version of the jQuery library.
Related:
jQuery videos for ASP.NET developers
Free JavaScript & jQuery learning resources
Friday, 10 February 2012
Beware of breaking changes in jQuery library versions
Posted on 22:37 by Unknown
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment