demo
Version:
Shaker demo
44 lines (37 loc) • 1.03 kB
JavaScript
/*
* Copyright (c) 2012 Yahoo! Inc. All rights reserved.
*/
YUI.add('secondaryBinderIndex', function(Y, NAME) {
/**
* The test_mojit_01BinderIndex module.
*
* @module test_mojit_01BinderIndex
*/
/**
* Constructor for the Binder class.
*
* @param mojitProxy {Object} The proxy to allow the binder to interact
* with its owning mojit.
*
* @class Binder
* @constructor
*/
Y.namespace('mojito.binders')[NAME] = {
/**
* Binder initialization method, invoked after all binders on the page
* have been constructed.
*/
init: function(mojitProxy) {
this.mojitProxy = mojitProxy;
},
/**
* The binder method, invoked to allow the mojit to attach DOM event
* handlers.
*
* @param node {Node} The DOM node to which this mojit is attached.
*/
bind: function(node) {
this.node = node;
}
};
}, '0.0.1', {requires: ['mojito-client']});