From 6abcbe1b597b264ea8ad2240a93cbea7ece0f673 Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 31 Oct 2016 14:15:56 -0600 Subject: [PATCH] change to use promises instead of success/catch. --- angucomplete-alt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/angucomplete-alt.js b/angucomplete-alt.js index c188bd4c..f9fdf83d 100644 --- a/angucomplete-alt.js +++ b/angucomplete-alt.js @@ -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;}); }