timrwood/moment — pull request #253 by rvagg (2012-04-04 04:37:28+00:00)
Title: play nicely within an Ender build

The default behaviour of Ender is to attach everything on `module.exports` to the global `ender`/`$` object which messes up *moment*, you get all of the `moment.*` methods attached, and lose `moment()`. You also get `window.moment` which is unnecessary.

This PR attaches *moment* as `$.moment` so it can be used as `$.moment(date).add('days', 10').format('YY-MM-DD')`. The 'ender' keyword in *package.json* also makes it show up as an Ender-compatible lib in an `ender search`.

Hope this is acceptable!

Thanks for the **great** lib!