don't break angular's promise :)

This commit is contained in:
AJ ONeal 2017-03-20 13:40:29 -06:00
parent b2a992d2d5
commit 813410d6b5
1 changed files with 2 additions and 2 deletions

View File

@ -15,9 +15,9 @@ angular
function PromiseAngularQ(fn) { function PromiseAngularQ(fn) {
var d = $q.defer(); var d = $q.defer();
$timeout(function () { //$timeout(function () {
fn(d.resolve, d.reject); fn(d.resolve, d.reject);
}, 0); //}, 0);
//this.then = d.promise.then; //this.then = d.promise.then;
//this.catch = d.promise.catch; //this.catch = d.promise.catch;