jquery-yui3-rosetta-stone
jquery-yui3-rosetta-stone copied to clipboard
A guide to idioms in YUI 3 and jQuery.
Might be useful to cover these differences in JQuery its node.clone(withDataAndEvents ) //deep clone is mandatory, data and events optional in YUI it is node.cloneNode(deep) //deep clone optional but deep...
Just wanted to suggest adding jQuery's .is( selector ) matches the YUI's .test( selector ).
In this statement, under the **Events** section, .bind() should be replaced with .on(): > //Alternatively, you can use the bind() method > $('#foo').bind('click', fn); For reference: http://api.jquery.com/bind/ > As of...
.offset() in jQuery (as of 1.8.3) does not return the size of the node
YUI has a less cumbersome map feature than the example, that isn't restricted to nodes: // Convert an array of numbers into an array of strings. Y.Array.map([1, 2, 3, 4],...
I love the idea of this project, but there's a few other libraries out there that'd benefit from this style of comparison - Dojo, MooTools, Prototype and such. So I'm...
It seems like it would be handy to include an example of going between JQuery's .live() and YUI3's node-event-delegate. I'd do it myself, but don't feel like I understand either...