Permalink
Browse files

feat: let be compitable with 0.9

  • Loading branch information...
XadillaX committed Oct 19, 2016
1 parent 07c4325 commit a1a78cb9f6e7645015fe8b2fb47403a0255cbb01
Showing with 3 additions and 0 deletions.
  1. +3 −0 util/common.js
@@ -77,6 +77,9 @@ common.promisify = function(callback) {
reject = _reject;
});

// let it be compitable with 0.9
q.$promise = q;

const newCallback = function() {
if(typeof callback === "function") {
callback.apply(null, arguments);

0 comments on commit a1a78cb

Please sign in to comment.