Permalink
Browse files

Properly require jQuery in CommonJS environment

1 parent c216181 commit 7e2ef3fb8ee30bf926575a56e2569d1a06c0376b @niksy niksy committed Aug 30, 2016
@@ -715,7 +715,7 @@
return window.Tour = factory(jQuery);
});
} else if (typeof exports === 'object') {
- return module.exports = factory(require('jQuery'));
+ return module.exports = factory(require('jquery'));
} else {
return window.Tour = factory(window.jQuery);
}
Oops, something went wrong.
@@ -25,7 +25,7 @@
return window.Tour = factory(jQuery);
});
} else if (typeof exports === 'object') {
- return module.exports = factory(require('jQuery'));
+ return module.exports = factory(require('jquery'));
} else {
return window.Tour = factory(window.jQuery);
}
Oops, something went wrong.
@@ -2,7 +2,7 @@
if typeof define is 'function' and define.amd
define ['jquery'], (jQuery) -> (window.Tour = factory(jQuery))
else if typeof exports is 'object'
- module.exports = factory(require('jQuery'))
+ module.exports = factory(require('jquery'))
else
window.Tour = factory(window.jQuery)
)(window, ($) ->
@@ -25,7 +25,7 @@
return window.Tour = factory(jQuery);
});
} else if (typeof exports === 'object') {
- return module.exports = factory(require('jQuery'));
+ return module.exports = factory(require('jquery'));
} else {
return window.Tour = factory(window.jQuery);
}
@@ -25,7 +25,7 @@
return window.Tour = factory(jQuery);
});
} else if (typeof exports === 'object') {
- return module.exports = factory(require('jQuery'));
+ return module.exports = factory(require('jquery'));
} else {
return window.Tour = factory(window.jQuery);
}

0 comments on commit 7e2ef3f

Please sign in to comment.