don't break angular's promise :)
This commit is contained in:
parent
b2a992d2d5
commit
813410d6b5
|
@ -15,9 +15,9 @@ angular
|
|||
function PromiseAngularQ(fn) {
|
||||
var d = $q.defer();
|
||||
|
||||
$timeout(function () {
|
||||
//$timeout(function () {
|
||||
fn(d.resolve, d.reject);
|
||||
}, 0);
|
||||
//}, 0);
|
||||
|
||||
//this.then = d.promise.then;
|
||||
//this.catch = d.promise.catch;
|
||||
|
|
Loading…
Reference in New Issue