prevent double calls to rename

This commit is contained in:
Brian Gough 2018-01-29 16:06:56 +00:00
parent 6ed181d52c
commit 1c6dc66ed1

View file

@ -28,6 +28,9 @@ define [
invalidModalShowing = false
$scope.finishRenaming = () ->
# avoid double events when blur and on-enter fire together
return if !$scope.entity.renaming
name = $scope.inputs.name
if !name.match(new RegExp(ide.validFileRegex))