openexchangerates / accounting.js

A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.
http://openexchangerates.github.io/accounting.js
MIT License
4.96k stars 530 forks source link

Improve AMD support for naive AMD loaders #59

Closed xzyfer closed 11 years ago

xzyfer commented 11 years ago

Replace the anonymous module definition for a name module accounting. This is really hand when using naive AMD loaders in the browser like almondjs (https://github.com/jrburke/almond) which don't have requirejs full module loading capability.