Luke Smith![]()
This patch corrects a typo in YUI 3.3.0's Node.prototype.toggleView method that causes a runtime error.
This patch module is only necessary for version 3.3.0.
See ticket http://yuilibrary.com/projects/yui3/ticket/2529855 for full details.
Apply the patch in the use() statement as long as version 3.3.0 is in use. Remove from the use() statement after upgrading to the subsequent version.
This patch is also applicable to simpleYUI use cases.
<script src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2011.01.26-20-33'
}).use('node', 'transition', 'gallery-patch-330-toggleview', function(Y) {
Y.one('#in-and-out').toggleView('size');
});
// Or with simpleYUI
// version #1, include the script on the page via combo
// <script src="http://yui.yahooapis.com/combo?3.3.0/build/simpleyui/simpleyui-min.js&....gallery-patch-330-toggleview.js"></script>
// <script>
Y.use('gallery-patch-330-toggleview');
Y.one('#in-and-out').toggleView('size');
// version #2, include the patch script as a separate <script>
// <script src="http://yui.yahooapis.com/3.3.0/build/simpleyui/simpleyui-min.js"></script>
// <script src="http://yui.yahooapis.com/.....gallery-patch-330-toggleview.js"></script>
Y.use('gallery-patch-330-toggleview');
Y.one('#in-and-out').toggleView('size');
// version #3, don't include the patch script on the page, and wrap calling code in a Y.use() callback
Y.use('gallery-patch-330-toggleview', function () {
Y.one('#in-and-out').toggleView('size');
});
© 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