volojs/volo — comment on commit 9b2ad0b2ec3999fb079ed6213138499fc8eb1a7e
File: dist/volo.js line 4458
By kriskowal:

Consider, instead of passing a deferred to resolve, just return a promise. The user can then say:

```javascript
deferred.resolve(run(namedArgs, appName, template));
```

Or they can go straight to chaining a ``.then`` call. The ``deferred.resolve`` function works regardless of whether the promise is eventually fulfilled or rejected.