sjwilliams / scrollstory

A jQuery plugin for building scroll-based stories

Home Page:http://sjwilliams.github.io/scrollstory/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drop `undefined` in boilerplate AMD setup?

sjwilliams opened this issue · 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