• Register
  • Log In
  • Home
  • Quick Start
    • Configurator
    • Download YUI 3
  • Documentation
    • User Guides
    • Examples
    • API Docs
    • Environments
    • Tutorials
  • Community
    • Gallery
    • Blog
    • Forums
    • YUI Theater
    • Calendar
  • Contribute
    • YUI on GitHub »
    • File a Ticket
    • View Tickets
    • Dashboard
  • Other Projects
    • Shifter »
    • Yogi »
    • YUI 2
    • YUI Doc »
    • YUI Test
    • YUI Website
    • YUI Compressor »
    • YUI Builder »
    • YUI PHP Loader
    • Grid Builder »
    • Skin Builder »
  • YUI
  • >
  • Community
  • >
  • Gallery

Gallery

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • Yogi Documentation
  • Shifter Documentation
  • Developer Guide
  • Module Setup

Tag Cloud

Context Navigation

    YUI Library is not responsible for bugs or support with this module. It is available as a free service. For support please contact the module owner with the provided links.

    Patch: 3.3.0 Node.prototype.toggleView error (gallery-patch-330-toggleview) on cdn

    Last Updated: 02/9/11
    + 0 -

    Luke Smith

    YUI Contributor

    See 19 more by this user.

    Created: 01/21/11
    Last CDN Push: 01/26/11
    Build Tag: gallery-2011.01.26-20-33
    Project: YUI 3
    License: YUI BSD
    YUI Version: 3.3.0
    Free for use.

    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.

    • Tags:
    • lsmith
    • node
    • bug
    • patch
    • Download
    • Docs
    • Homepage
    • Bugs
    • Source
    • Example
    • Forum
    • History

    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.

    Code Sample

    <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