YUI 3 allows you to write
Y.all('.foo').removeClass('bar');
However it does not allow writing
Y.all('.foo').removeClass('bar').set('innerHTML', 'baz');
It seems all the ‘operational’ methods always terminate the call chain.
This means YUI 3 only provides half the power of chaining that jQuery provides.
Does anyone know why this is, and if there is a way around it?
Oren,
Obviously you’re aware of this already, but to complete this thread for those who stumble upon it later —
http://tech.groups.yahoo.com/group/ydn-javascript/message/45375
In short, this is a bug (opened by Oren) and it’s being tracked here:
http://yuilibrary.com/projects/yui3/ticket/2525997
-Eric