diff --git a/index.js b/index.js index 4ab5a58..27d14a3 100644 --- a/index.js +++ b/index.js @@ -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'); @@ -57,4 +58,4 @@ module.exports = function (options) { } return _queryDom; -}; \ No newline at end of file +};