xuijs / xui

A tiny javascript framework for mobile web apps.
http://xuijs.com
788 stars 106 forks source link

find() needs to be passed in context explicitly on older BlackBerries #2

Closed filmaj closed 13 years ago

filmaj commented 14 years ago

4.6 BB or so has problem with .find(). Assuming the below selectors are valid, this won't work:

var el = x$('#myEl');
var subEl = el.find('.randomClass');

But this will:

var el = x$('#myEl');
var subEl = el.find('.randomClass', el[0]);

wtf?

filmaj commented 13 years ago

pretty sure c4ef1deb8f777b23a7262dee33bbbc86c83f6fec solved this problem.