3 ms·
I wouldn't call this a rewrite of jQuery, it's more of a from-scratch implementation of a very small subset of jQuery APIs. The semantics of the subset vary si
by dmethvin 15y ago
I wouldn't call this a rewrite of jQuery, it's more of a from-scratch implementation of a very small subset of jQuery APIs.
The semantics of the subset vary significantly from jQuery as well. Take for example the show/hide implementation. `.show()` blindly sets the display to block. jQuery remembers the value it had when you hid it (block, inline-block, table-cell, etc.) and restores that setting.
- woogley 15y agoInteresting, John Resig shared that exact same critique when Zepto first came out over year ago: http://news.ycombinator.com/item?id=1843787 http://news.ycombinator.com/item?id=1843787 Funny how both rewrites are missing this level of detail, or it could just be further evidence of how much JQ.Mobi "derives" from Zepto
- rwaldron 15y agoThis is sort of thing that happens when developers start thinking that jQuery is "bloated" and that they can do better and start ripping out code without fully understanding the expected behaviour. Nothing in jQuery is there without good reason.