firstopinion/formatter.js — pull request #14 by bryanjswift (2013-11-05 02:30:07+00:00)
Title: Make Formatter usable as an AMD module

Defines Formatter as an AMD module if an AMD compatible define function is found in scope. Does the same for CommonJS and falls back to defining it as `window['Formatter']`. Tests all still pass.