documentcloud/backbone — Issue #841: Documentation error/bug/ for Backbone.View.make
Author: kensaggy
Created: 2012-01-06 13:33:36+00:00
State: open

The documentation states the following code example regarding View.make:

```javascript

var view = new Backbone.View;

var el = view.make("b", {className: "bold"}, "Bold! ");

$("#make-demo").append(el);

```

However className is incorrect, it should state 'class' in the example.
The source code comments is correct on this matter:

```javascript

// For small amounts of DOM Elements, where a full-blown template isn't
// needed, use **make** to manufacture elements, one at a time.
//
// var el = this.make('li', {'class': 'row'}, this.model.escape('title'));
//

```

Using the code sample suggested in the documentation will produce the invalid markup:
Bold!