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,8 @@
if (_.contains(<%= _.camelCase(name) %>Options, <%= get %>)) {
<%= set %> = <%= get %>;
} else {
throw new TypeError(
'Invalid <%= name %>: ' + <%= get %> +
' should be one of ' + <%= _.camelCase(name) %>Options.join(', ') + '.'
);
}