Lines Matching refs:host
48 * augmented on to a host class, and provides the host with the ability to configure
51 * <p>For example, attributes added to the host can be configured:</p>
110 * Constructor logic for attributes. Initializes the host state, and sets up the inital attributes passed to the
126 * Adds an attribute with the provided configuration to the host object.
140 * reference the host instance ("this") to obtain an initial value. If both the value and valueFn properties are defined,
200 * the context ("this") set to the host object.</p>
217 * @return {Object} A reference to the host object.
225 var host = this, // help compression
226 state = host._state,
234 if (lazy && !host.attrAdded(name)) {
241 if (host.attrAdded(name) && !state.get(name, IS_LAZY_ADD)) { Y.log('Attribute: ' + name + ' already exists. Cannot add it again without removing it first', 'warn', 'attribute'); }
243 if (!host.attrAdded(name) || state.get(name, IS_LAZY_ADD)) {
262 host.set(name, value);
269 return host;
273 * Checks if the given attribute has been added to the host
340 * @return {Object} A reference to the host object.
355 * @return {Object} A reference to the host object.
380 * @return {Object} A reference to the host object.
482 var host = this, // help compression
484 state = host._state,
496 if (host._tCfgs && host._tCfgs[name]) {
498 cfg[name] = host._tCfgs[name];
499 delete host._tCfgs[name];
500 host._addAttrs(cfg, host._tVals);
504 if (host._isLazyAttr(name)) {
505 host._addLazyAttr(name);
508 val = host._getStateVal(name);
516 val = (getter) ? getter.call(host, val, fullName) : val;
569 var host = this,
586 valid = validator.call(host, newVal, name);
602 retVal = setter.call(host, newVal, name);
623 host._setStateVal(attrName, newVal);
640 * @return {Object} A reference to the host object.
653 * @return {Object} A reference to the host object.
687 var host = this,
693 attrs = (attrs && !modifiedOnly) ? attrs : O.keys(host._state.data);
698 val = host.get(attr);
700 if (!modifiedOnly || host._getStateVal(attr) != host._state.get(attr, INIT_VALUE)) {
701 o[attr] = host.get(attr);
726 * @return {Object} A reference to the host object.
729 var host = this; // help compression
731 host._tCfgs = cfgs;
732 host._tVals = host._normAttrVals(values);
733 host._addAttrs(cfgs, host._tVals, lazy);
734 host._tCfgs = host._tVals = null;
737 return host;
758 var host = this, // help compression
771 value = host._getAttrInitVal(attr, attrCfg, host._tVals);
777 if (host._tCfgs[attr]) {
778 delete host._tCfgs[attr];
781 host.addAttr(attr, attrCfg, lazy);