Skip to content

Commit

Permalink
Merge pull request #442 from postama/change-from-success-catch
Browse files Browse the repository at this point in the history
change to use promises instead of success/catch.
  • Loading branch information
ghiden authored Jan 2, 2017
2 parents 0b4c4e4 + 6abcbe1 commit 97eea42
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 97eea42

Please sign in to comment.