brianleroux / xui

A tiny javascript framework for mobile web apps.
http://github.com/xui/xui
391 stars 159 forks source link

context.getElementById can fail #49

Open drobert opened 13 years ago

drobert commented 13 years ago

Coming from a jquery background, I would expect this to work: var container = x$('#container'); var containee = container.find('#containee'); Instead, you end up with context.getElementById is not a function

A quick fix would be to check to see if context has a getElementById function and if not, force a call from document instead of context.