Skip to content

Commit

Permalink
Updated variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Nov 13, 2017
1 parent d60222f commit 2a8b4cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ module.directive('appendWildcard', function () {
link: function ($scope, $elem, $attrs, $ctrl) {
$scope.appendedWildcard = false;

function setElementValue(val, event, moveSelectionRange = false) {
function setElementValue(val, event, setCursorBackOneCharacter = false) {
event.preventDefault();
$elem.val(val);
if (moveSelectionRange) {
if (setCursorBackOneCharacter) {
$elem[0].setSelectionRange(1, 1);
}
}
Expand Down

0 comments on commit 2a8b4cf

Please sign in to comment.