apache/couchdb-fauxton — pull request #111 by benkeen (2014-10-23 19:54:26+00:00)
Title: Added constants.js file to core

@garrensmith, @rkowalski could I get a bit of feedback on this ticket:

1. Is FauxtonAPI.constants the place for this? I think a constants file is certainly needed & belongs in app/core, but perhaps it should just include it as a dependency rather than adding it to FauxtonAPI? It would be less verbose to use, e.g.

```javascript
define(["constants"], function(C) {
// C.MY_CONSTANT
});
```

instead of `FauxtonAPI.constants.MY_CONSTANT`.

Thoughts?

2. Uppercase for constants OK? (cribbed from Google’s JS style guide).

By the way, for now I just added a single constant and updated a single file to use it. From here on out I’ll start using it for future work.