Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #8100
| From | David Mark <dmark.cinsoft@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | David Mark's Javascript Tip of the Day |
| Date | 2011-11-07 04:20 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <36fd7a7b-a7be-4bd2-abce-e931a3c6ad02@s32g2000prj.googlegroups.com> (permalink) |
David Mark's Javascript Tip of the Day Volume 1 - Tip 3A For God's sake, don't use jQuery under any circumstances. http://pengbos.com/blog/a-bug-in-jquery-latest-releasev1-6-2 Not fast, not concise, just creates a whole lot of confusion for no good reason. Google combinations of: "jQuery", "attr", "prop", "removeAttr", and now "removeProp" (!) and find lots of similar tales. The "attr" variety is old news, the others were recently added to try to fix the problems it created. The client above just needed code like this:- el.readOnly = b; // That's all ...instead they spent what appears to be hours slogging through jQuery's muck. The common recurring theme is that nobody associated with the project seems to understand what these functions do or how to design alternatives that make sense. Meanwhile, entire books and blogs about jQuery are "right" one day and "wrong" the next as jQuery fiddles endlessly with their core DOM code. Virtually every jQuery example ever written makes at least one call to "attr". http://www.cinsoft.net/ http://twitter.com/cinsoft http://jsperf.com/browse/david-mark
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
David Mark's Javascript Tip of the Day David Mark <dmark.cinsoft@gmail.com> - 2011-11-07 04:20 -0800
Re: David Mark's Javascript Tip of the Day RobG <rgqld@iinet.net.au> - 2011-11-07 16:26 -0800
Re: David Mark's Javascript Tip of the Day "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-11-08 09:02 +0200
Re: David Mark's Javascript Tip of the Day David Mark <dmark.cinsoft@gmail.com> - 2011-11-08 10:52 -0800
Re: David Mark's Javascript Tip of the Day David Mark <dmark.cinsoft@gmail.com> - 2011-11-08 10:47 -0800
csiph-web