Lines Matching defs:host
50 var host = this; // help compression
53 host._ATTR_E_FACADE = {};
56 host._state = {};
57 host.prototype = Y.mix(AttributeLite.prototype, host.prototype);
62 * Initializes the attributes for a shape. If an attribute config is passed into the constructor of the host,
70 var host = this,
75 state = host._state;
90 state[i] = host[fn].apply(host);
94 state[i] = fn.apply(host);
99 host._state = state;
119 host._state[i] = attr.setter.apply(host, [cfg[i]]);
123 host._state[i] = cfg[i];
139 var host = this,
141 attrConfig = host.constructor.ATTRS;
149 return host[getter].apply(host);
151 return attrConfig[attr].getter.apply(host);
154 return host._state[attr];
199 var host = this,
202 attrConfig = host.constructor.ATTRS;
211 val = host[setter].apply(host, args);
215 val = attrConfig[attr].setter.apply(host, args);
218 host._state[attr] = val;
236 var host = this,
238 if (host._initPlugins && PluginHost) {
239 PluginHost.call(host);
242 host.name = host.constructor.NAME;
243 host._eventPrefix = host.constructor.EVENT_PREFIX || host.constructor.NAME;
244 AttributeLite.call(host);
245 host.addAttrs(cfg);
246 host.init.apply(this, arguments);
247 if (host._initPlugins) {
249 host._initPlugins(cfg);
251 host.initialized = true;