button-plugin-debug.js revision c857ea22eae75f7e285a2c5e626131e7be23e12c
06c1e33a270f80929bf9b9dde81f4061d1949fffDerek Gathright ButtonPlugin.superclass.constructor.apply(this, arguments);
06c1e33a270f80929bf9b9dde81f4061d1949fffDerek Gathright // TODO: point to method (_uiSetLabel, etc) instead of getter/setter
06c1e33a270f80929bf9b9dde81f4061d1949fffDerek Gathright fn = ATTRS[name] && ATTRS[name].getter && this[ATTRS[name].getter];
06c1e33a270f80929bf9b9dde81f4061d1949fffDerek Gathright return new Y.Do.AlterReturn('get ' + name, fn.call(this));
06c1e33a270f80929bf9b9dde81f4061d1949fffDerek Gathright fn = ATTRS[name] && ATTRS[name].setter && this[ATTRS[name].setter];
06c1e33a270f80929bf9b9dde81f4061d1949fffDerek Gathright Y.Do.after(this._afterNodeGet, node, 'get', this);
06c1e33a270f80929bf9b9dde81f4061d1949fffDerek Gathright Y.Do.after(this._afterNodeSet, node, 'set', this);
06c1e33a270f80929bf9b9dde81f4061d1949fffDerek Gathright // TODO: Anything?
06c1e33a270f80929bf9b9dde81f4061d1949fffDerek Gathright// (node, config)
06c1e33a270f80929bf9b9dde81f4061d1949fffDerek GathrightButtonPlugin.createNode = function(node, config) {
06c1e33a270f80929bf9b9dde81f4061d1949fffDerek Gathright if (! (node.nodeType || node.getDOMNode || typeof node == 'string')) {
c857ea22eae75f7e285a2c5e626131e7be23e12cEric Ferraiuolo template = config.template || Y.Plugin.Button.prototype.TEMPLATE;
c857ea22eae75f7e285a2c5e626131e7be23e12cEric Ferraiuolo node = node || config.srcNode || Y.DOM.create(template);
06c1e33a270f80929bf9b9dde81f4061d1949fffDerek Gathright return Y.one(node).plug(Y.Plugin.Button, config);
d35783d338067103badd5ebbb57676c129f5e563Eric Ferraiuolo}, '@VERSION@' ,{requires:['button-core', 'cssbutton', 'node-pluginhost']});