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.95k stars 528 forks source link

Adjusting library exposure to work with RequireJS #60

Closed lroggendorff closed 7 years ago

lroggendorff commented 11 years ago

Changed the library exposure section slightly so it would work within a RequireJS project.

This should also address issue #55.

michetti commented 10 years ago

+1

tiagowhite commented 10 years ago

+2

kmiyashiro commented 9 years ago

:-1: the whole point of AMD and modules is to not pollute the global namespace, this totally defeats the purpose. If you need a global (and are also using requirejs for some reason...), just assign it yourself in a wrapper but don't make the rest of us manually delete it from the global.