gwendall/way.js — pull request #33 by alexanderGugel (2014-09-28 16:37:13+00:00)
Title: Check for module object

Although module is usually defined whenever exports is defined, I
believe it is cleaner and makes more sense to check for the
existence of the module object before setting a property on it
(as opposed to checking for the exports object).

A theoretical scenario where this might become a problem is when
the user sets window.exports and define is not a function.

Although this is a very theoretical example, this probably makes
more sense.