I have just started trying out micro libraries instead of using jQuery and I'd like to use qwery with bean. If I set bean.setSelectorEngine(qwery);
why does the following not work?
bean.on('.masthead', 'click', function () {
console.log('click fired');
});
I am also using bonzo for DOM utility, so I have set it to use the dollar along with qwery so I can select elements in a jQuery-like fashion: e.g. $('.masthead')
.
function $(selector) {
return bonzo(qwery(selector));
}
This also does not work. Should I not be able to use the following with bean?
bean.on($('.masthead'), 'click', function () {
console.log('click fired');
});
Perhaps I have missed something important in the bean documentation.. What do I need to do to fix this?
Also, I am trying to avoid using Ender if at all possible, I am trying to keep my external libraries down to a minimum.