jaridmargolin / formatter.js

Format html inputs to match a specified pattern
http://firstopinion.github.io/formatter.js
2.48k stars 235 forks source link

Rethink module exposure #13

Closed jaridmargolin closed 11 years ago

jaridmargolin commented 11 years ago

Currently binding Formatter to the window (terrible). I like how underscore esposes itself:

http://underscorejs.org/docs/underscore.html

Allows for it to be shimmed if necessary.

bryanjswift commented 11 years ago

I just submitted a pull request #14 which addresses this but in a slightly more extensible fashion.