ftlabs / fruitmachine

View rendering engine
MIT License
247 stars 18 forks source link

Do we need to find elements when they are not in the DOM? #13

Closed wilsonpage closed 11 years ago

wilsonpage commented 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.

Perhaps to simplify things further, we should only allow element access after .inject() and .setup() have run?

wilsonpage commented 11 years ago

Although a little messy, I'm keeping this feature as it adds to the robustness of the library.