emberjs/ember.js — pull request #4140 by ctimmerm (2014-01-14 07:23:30+00:00)
Title: Make Ember.RenderBuffer#addClass work as expected.

RenderBuffer#addClass currently works in surprising ways, take the following example:

```javascript
var buffer = new Ember.RenderBuffer('div')
buffer.setClasses(['foo', 'bar']);
buffer.addClass('baz'); // I'd say I'm adding 'baz' to the two classes I've set before
buffer.pushOpeningTag();
buffer.pushClosingTag();
```

will produce:

```html

```

after this commit:

```html

```

Another example:

```javascript
var buffer = new Ember.RenderBuffer('div')
buffer.addClass('foo')
buffer.pushOpeningTag();
buffer.pushClosingTag();
buffer.begin('div').addClass('bar');
buffer.pushOpeningTag();
buffer.pushClosingTag();
```

will produce:

```html

```

after this commit:

```html

```