Skip to content

Commit

Permalink
change to use promises instead of success/catch.
Browse files Browse the repository at this point in the history
  • Loading branch information
postama committed Oct 31, 2016
1 parent 0b4c4e4 commit 6abcbe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angucomplete-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,8 @@
params.timeout = httpCanceller.promise;
httpCallInProgress = true;
$http.get(url, params)
.success(httpSuccessCallbackGen(str))
.error(httpErrorCallback)
.then(httpSuccessCallbackGen(str))
.catch(httpErrorCallback)
.finally(function(){httpCallInProgress=false;});
}

Expand Down

0 comments on commit 6abcbe1

Please sign in to comment.