Lines Matching refs:name
7 * but can also be used independently to provide a name/property/value data structure to
50 * @param {String} name The name of the attribute whose configuration is to be updated.
53 modifyAttr: function(name, config) {
57 if (host.attrAdded(name)) {
59 if (host._isLazyAttr(name)) {
60 host._addLazyAttr(name);
66 state.add(name, prop, config[prop]);
70 state.remove(name, PUBLISHED);
76 if (!host.attrAdded(name)) {Y.log('Attribute modifyAttr:' + name + ' has not been added. Use addAttr to add the attribute', 'warn', 'attribute');}
83 * @param {String} name The name of the attribute to be removed.
85 removeAttr: function(name) {
86 this._state.removeAll(name);
94 * @param {String} name Optional. The name of the attribute to reset. If omitted, all attributes are reset.
98 reset : function(name) {
101 if (name) {
102 if (host._isLazyAttr(name)) {
103 host._addLazyAttr(name);
105 host.set(name, host._state.get(name, INIT_VALUE));
121 * @param {String} name Optional. The attribute name. If not provided, the method will return the configuration for all attributes.
124 _getAttrCfg : function(name) {
128 if (name) {
129 o = state.getAll(name) || {};