Dialog: Fix jshint issue