* If `attr` is a component, returns JUST the component data defined on the entity. * Like a partial version of `getComputedAttribute` as returned component data * does not include applied mixins or defaults. * * If `attr` is not a component, fall back to HTML getAttribute. * * @par
(attr)
| 736 | * @returns {object|string} Object if component, else string. |
| 737 | */ |
| 738 | getDOMAttribute (attr) { |
| 739 | // If cached value exists, return partial component data. |
| 740 | var component = this.components[attr]; |
| 741 | if (component) { return component.attrValue; } |
| 742 | return window.HTMLElement.prototype.getAttribute.call(this, attr); |
| 743 | } |
| 744 | |
| 745 | addState (state) { |
| 746 | if (this.is(state)) { return; } |
no outgoing calls
no test coverage detected