Refactored the API, moving it into a single api.js file which can be

exluded from a build if desired.
This commit is contained in:
Spencer Alger
2013-10-23 06:24:02 -07:00
parent b063dfdca7
commit 01763c2c39
102 changed files with 4097 additions and 8459 deletions

View File

@ -0,0 +1,5 @@
if (typeof <%= get %> !== 'object' && <%= get %>) {
<%= set %> = '' + <%= get %>;
} else {
throw new TypeError('Invalid <%= name %>: ' + <%= get %> + ' should be a string.');
}