Maybe i'm not following what's going on entirely, but if my understanding is correct, this function is used to resolve a deferred after a bunch of other deferred's have completed. (yes?)

jQuery has a built in function for this [```$.when```](http://api.jquery.com/jQuery.when/), which accepts an unlimited number of parameters, or can be called ```$.when.apply($, array)```, so this function could be simplified to:

```js
function _whenRenderedResolve(deferred) {
  if (_renderPromises) {
    $.when.apply($, _renderPromises).done(function() {
        deferred.resolve();
    });
  }
}
```