sjwilliams/scrollstory

Drop `undefined` in boilerplate AMD setup?

sjwilliams opened this issue · 1 comments

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) {

Addressed in 0.3.8