plugin.js revision 347511d70b1f81d9b08363612fdabcef8a85e7a6
e371fe50702011b7021c8d79181e88184c23448bAdam Moore* A Button Plugin
e371fe50702011b7021c8d79181e88184c23448bAdam Moore* @module button-plugin
e371fe50702011b7021c8d79181e88184c23448bAdam Moore* @since 3.5.0
e371fe50702011b7021c8d79181e88184c23448bAdam Moore* @class ButtonPlugin
e371fe50702011b7021c8d79181e88184c23448bAdam Moore* @param config {Object} Configuration object
e371fe50702011b7021c8d79181e88184c23448bAdam Moore* @constructor
e371fe50702011b7021c8d79181e88184c23448bAdam Moore ButtonPlugin.superclass.constructor.apply(this, arguments);
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @method _afterNodeGet
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @param name {string}
e371fe50702011b7021c8d79181e88184c23448bAdam Moore // TODO: point to method (_uiSetLabel, etc) instead of getter/setter
e371fe50702011b7021c8d79181e88184c23448bAdam Moore fn = ATTRS[name] && ATTRS[name].getter && this[ATTRS[name].getter];
e371fe50702011b7021c8d79181e88184c23448bAdam Moore return new Y.Do.AlterReturn('get ' + name, fn.call(this));
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @method _afterNodeSet
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @param name {String}
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @param val {String}
e371fe50702011b7021c8d79181e88184c23448bAdam Moore fn = ATTRS[name] && ATTRS[name].setter && this[ATTRS[name].setter];
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @method _initNode
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @param config {Object}
e371fe50702011b7021c8d79181e88184c23448bAdam Moore Y.Do.after(this._afterNodeGet, node, 'get', this);
e371fe50702011b7021c8d79181e88184c23448bAdam Moore Y.Do.after(this._afterNodeSet, node, 'set', this);
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @method destroy
e371fe50702011b7021c8d79181e88184c23448bAdam Moore // Nothing to do, but things are happier with it here
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * Attribute configuration.
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @property ATTRS
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @type {Object}
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * Name of this component.
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @property NAME
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @type String
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * Namespace of this component.
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @property NS
e371fe50702011b7021c8d79181e88184c23448bAdam Moore * @type String
var template;