don't break angular's promise :)
Šī revīzija ir iekļauta:
vecāks
b2a992d2d5
revīzija
813410d6b5
@ -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;
|
||||||
|
|||||||
Notiek ielāde…
x
Atsaukties uz šo jaunā problēmā
Block a user