Commit Graph

2 Commits

Author SHA1 Message Date
Pierre Ossman 6bc9cadaef Use RequireJS module system
Use a standard module system rather than a home grown one, and
RequireJS fits better with browsers than CommonJS.
2017-01-23 17:08:46 +01:00
Solly Ross f8e9b9f1bf Cleanup and Test: base64.js
This is the first commit in a series of commits
which improve the readability of some of the code
and add tests.

File: base64.js
Tests Added: True
Changes:
- Improved indentation
- Fixed JSHint errors
- Moved loop variables to be declared in the loop for better readability
  (N.B. Javascript does not have block scoping, so the variables are
  still technically available outside the loop -- it just makes the code
  clearer to place them inside the loop, since they are only used there)
2014-09-15 16:46:02 -04:00