• 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.

    Event Binder (gallery-event-binder) on cdn

    Last Updated: 09/11/10
    + 1 -

    Caridy Patino

    YUI Contributor

    See 11 more by this user.

    Created: 06/1/10
    Last CDN Push: 06/30/10
    Build Tag: gallery-2010.06.30-19-54
    Project: YUI 3
    License: YUI BSD
    YUI Version: 3.2.0
    Free for use.

    Overview

    Binding user actions until a particular YUI instance become ready, and the listeners defined before flushing those events through a queue. This will help to catch some early user interactions due the ondemand nature of YUI 3.

    Usage

    Make sure you read this article to fully understand how this component works:
    http://www.yuiblog.com/blog/2010/06/23/event-binder/

    Examples

    • Early Event Binding
    • Event-driven Module Loading
    • End-to-end example (with advanced configuration)

    CHANGELOG

    Check the latest changes in this module.

    • http://github.com/caridy/yui3-gallery/tree/master/src/gallery-event-binder/
    • Tags:
    • caridy
    • event
    • loading
    • flush
    • binder
    • Download
    • Docs
    • Homepage
    • Bugs
    • Source
    • Example
    • Forum
    • History

    Catching early actions using a simple configuration. Then setting a real listener and flushing the events. Here is the original source code for this example:
    http://caridy.github.com/examples/gallery-event-binder/simple.html

    Check more examples here:
    http://caridy.github.com/examples/gallery-event-binder/index.html

    Code Sample

    <script src="http://yui.yahooapis.com/3.2.0/build/yui/yui-min.js"></script>
    YUI({
        //Last Gallery Build of this module
        gallery: 'gallery-2010.06.30-19-54'
    }).use('gallery-event-binder', function(Y) {
     
        Y.on('click', function(e) {
            // do your stuff here
        }, '#mylink');
     
        Y.EventBinder.flush('click');
     
    });

    Forum Posts

    Subject Author Date
    loading and then initialization Marc 11/28/12

    © 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