Skip to content

Commit

Permalink
Add promise-defer dep
Browse files Browse the repository at this point in the history
  • Loading branch information
gre committed Jan 11, 2016
1 parent 3898945 commit 6ad33aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"react": "^0.14.5"
},
"dependencies": {
"events": "1.1.0",
"invariant": "2.2.0",
"events": "1.1.0"
"promise-defer": "1.0.0"
},
"devDependencies": {
"babel-cli": "^6.3.17",
Expand Down
11 changes: 1 addition & 10 deletions src/Shaders.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
const {EventEmitter} = require("events");
const invariant = require("invariant");

function defer () {
const deferred = {};
const promise = new Promise((resolve, reject) => {
deferred.resolve = resolve;
deferred.reject = reject;
});
deferred.promise = promise;
return deferred;
}
const defer = require("promise-defer");

const INLINE_NAME = "<inline>";

Expand Down

0 comments on commit 6ad33aa

Please sign in to comment.