documentcloud/backbone — pull request #1061 by charlieschwabacher (2012-03-01 21:39:52+00:00)
Title: Update Mode.has() to accept multiple arguments, return true if all of them are present, and false otherwise

Right now, checking for multiple attributes on a model is a little awkward. I think making this change simplifies things while leaving the existing API intact.

```if (model.has('attr1') && model.has('attr2') && model.has('attr3') {...```

becomes:

```if (model.has('attr1', 'attr2', 'attr3')) {...```