yui/yui3 — pull request #219 by rgrove (2012-08-14 21:23:10+00:00)
Title: Allow models to be added to a ModelList at instantiation time.

This change allows models to be added to a ModelList at instantiation time by passing them in the `items` config property:

```js
// Add models to a list at instantiation time, with no `add` event.
var list = new Y.ModelList({
items: [
{name: 'first model'},
{name: 'second model'}
]
});

// Add models from another list.
var list = new Y.ModelList({items: otherModelList});
```

I chose the name `items` instead of `models` to avoid confusion since there's already a singular `model` config property and it's used to refer to a Model class, not a model instance.

This change is automatically inherited by LazyModelList, so it gets the same enhancement at no cost.

### Running Locally

The built `model-list` module is intentionally not included in order to keep the diffs clean. Before testing this change, you'll need to build it:

```bash
$ cd src/app && ant all
```