News for hackers. Stuff that matters.
Re:JQuery 1.6.1 released... by chromic on Friday May 13, 2011 @02:55AM (#2543861)
This seems like the right choice. As nice as it is to force code to make explicit distinctions between the two methods, something as popular as jQuery shouldn't cause code breakage in a single update. Deprecate, hint at the better way to do things, and wait for users to move toward the more modern approach.
Re:JQuery 1.6.1 released... by pak on Friday May 13, 2011 @03:33AM (#2543930)
Yes, this was the correct move. jQuery is for thinking less and doing more; the prop/attr distinction is both a painful code change and a needless complication for the sort of purposes that jQuery is used for.
Re:JQuery 1.6.1 released... by timdown on Friday May 13, 2011 @06:45AM (#2544196)
Whether the property/attribute distinction is necessary for jQuery users is one question (I strongly believe it is), but if not, the correct move would be to remove the prop() method entirely, because according to the release notes it nows seems pretty much completely pointless.