John Lindal![]()
This extension to Y.Node provides functions for searching by class name using a regular expression.
It also overrides ancestor() to provide a 10x faster version when searching for a single class name or tag name.
Example usage.
<script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.06.27-20-10'
}).use('gallery-node-optimizations', function(Y) {
Y.one('#item2').ancestor('ul');
Y.one('#root').getElementsByClassName('my-data:[a-z]+');
});No forum posts for this module.
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info