Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module.exports = function (options) {
var opts = options || {};
var container = opts.el || document.body;
var prefix = opts.prefix || 'js-';
var hasJquery = typeof jQuery !== 'undefined';
var wantJquery = opts.usejQuery || false;
var hasJquery = wantJquery && typeof jQuery !== 'undefined';

if(!container) {
return console.warn('queryDom warning: the container specified in empty');
Expand Down Expand Up @@ -57,4 +58,4 @@ module.exports = function (options) {
}

return _queryDom;
};
};