emberjs/ember.js — pull request #4662 by selvagsz (2014-04-06 15:24:06+00:00)
Title: [BUGFIX beta] Normalize the `if` and `bind-attr` truthiness

There exists some inconsistent in evaluating the truthiness of an empty array between the `{{#if}}` and `{{bind-attr}}` helpers. The former treats an empty array as `falsy` value while the latter treats it as `truthy` one.

[JSbin demonstrating the inconsistent behaviour](http://emberjs.jsbin.com/pagawife/2/edit)

[JSbin fixing the inconsistent](http://emberjs.jsbin.com/yuhedabu/5/edit)

This PR addresses the inconsistent behaviour.
Fixes #4330