Closed wilsonpage closed 11 years ago
View#getElement(); currently looks in the DOM for elementById, then attempts to find the element from the closest element. This may be overkill.
View#getElement();
Perhaps to simplify things further, we should only allow element access after .inject() and .setup() have run?
.inject()
.setup()
Although a little messy, I'm keeping this feature as it adds to the robustness of the library.
View#getElement();
currently looks in the DOM for elementById, then attempts to find the element from the closest element. This may be overkill.Perhaps to simplify things further, we should only allow element access after
.inject()
and.setup()
have run?