Replacing Q promises with ES6 promises

This commit is contained in:
Jeff Avallone
2015-03-14 17:11:14 -04:00
parent 3970224302
commit 0093db8e20
24 changed files with 212 additions and 254 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
import util from '../../util.js';
import _ from 'lodash';
import Q from 'q';
export default {
type: 'charset',
@@ -22,7 +21,7 @@ export default {
_render() {
this.partContainer = this.container.group();
return Q.all(_.map(this.elements, part => {
return Promise.all(_.map(this.elements, part => {
return part.render(this.partContainer.group());
}))
.then(() => {