Drop `undefined` in boilerplate AMD setup?
sjwilliams opened this issue · comments
Josh Williams commented
This pattern is causing issue for new NYT site and unclear what purpose it serves.
(function(factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery', undefined], factory);
} else {
factory(jQuery, undefined);
}
}(function($, undefined) {
Josh Williams commented
Addressed in 0.3.8