nit: These read better if the expressions after the conditional expression are on the next line:

```js
  var lock = e.target == dom.message ? 
    Compose.messageLock : Compose.subjectLock;
```

Also, please use `===`