Skip to content

Commit

Permalink
removed console
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Oct 4, 2017
1 parent 91b8fc5 commit 08e4916
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions js/components/detailsItem/detailsItem_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@ angular.module('contactsApp')
var displayName = array.map(function (element) {
return element.charAt(0).toUpperCase() + element.slice(1).toLowerCase();
}).join(' ');
console.log(ctrl.availableOptions, ctrl.type);

// in case the type is not yet in the default list of available options we add it
if (!ctrl.availableOptions.some(function(e) { return e.id === ctrl.type; } )) {
console.log('test1');
ctrl.availableOptions = ctrl.availableOptions.concat([{id: ctrl.type, name: displayName}]);
}
}
Expand All @@ -53,7 +50,6 @@ angular.module('contactsApp')
if (!_.isUndefined(val)) {
// in case the type is not yet in the default list of available options we add it
if (!ctrl.availableOptions.some(function(e) { return e.id === val.value; } )) {
console.log(val);
ctrl.availableOptions = ctrl.availableOptions.concat([{id: val.value.toUpperCase(), name: val.value.toUpperCase()}]);
}
}
Expand Down

0 comments on commit 08e4916

Please sign in to comment.