Removing unncesary console.log

stable
Alejandro Alonso 2016-09-21 13:51:07 +02:00 committed by David Barragán Merino
parent 0023f528a9
commit dc48e3e2c6
1 changed files with 0 additions and 3 deletions

View File

@ -442,16 +442,13 @@ MarkitupDirective = ($rootscope, $rs, $selectedText, $template, $compile, $trans
$rs.search.do($scope.projectId || $scope.vm.projectId, term).then (res) => $rs.search.do($scope.projectId || $scope.vm.projectId, term).then (res) =>
if res.count < 1 if res.count < 1
console.log 1
callback([]) callback([])
if res.count < 1 or not res.wikipages or res.wikipages.length <= 0 if res.count < 1 or not res.wikipages or res.wikipages.length <= 0
console.log 2
callback([]) callback([])
else else
callback res.wikipages.filter((page) => callback res.wikipages.filter((page) =>
console.log 3
return taiga.slugify(page['slug']).indexOf(term) >= 0 return taiga.slugify(page['slug']).indexOf(term) >= 0
), true ), true