Skip to content

Commit

Permalink
Merge pull request darylrowland#36 from ilsenem/patch-2
Browse files Browse the repository at this point in the history
Do not search for internal object of not defined
  • Loading branch information
Daryl Rowland committed May 22, 2014
2 parents 80c1baf + 0939216 commit 25356a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angucomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ angular.module('angucomplete', [] )
$http.get($scope.url + str, {}).
success(function(responseData, status, headers, config) {
$scope.searching = false;
$scope.processResults(responseData[$scope.dataField], str);
$scope.processResults((($scope.dataField) ? responseData[$scope.dataField] : responseData ), str);
}).
error(function(data, status, headers, config) {
console.log("error");
Expand Down

0 comments on commit 25356a4

Please sign in to comment.