diff --git a/core/misc/machine-name.js b/core/misc/machine-name.js index ce77b4d..f12e967 100644 --- a/core/misc/machine-name.js +++ b/core/misc/machine-name.js @@ -49,15 +49,15 @@ var rx = new RegExp(options.replace_pattern, 'g'); var expected = baseValue.toLowerCase().replace(rx, options.replace).substr(0, options.maxlength); - // Abort the last pending request. Since the label has changed and it is - // no longer valid. + // Abort the last pending request because the label has changed and it + // is no longer valid. if (xhr && xhr.readystate != 4) { xhr.abort(); xhr = null; } - // Wait until it's been 300 milliseconds since the last event (ie. after - // the user has stopped typing) to actually update the machine name. + // Wait 300 milliseconds since the last event to update the machine name + // i.e., after the user has stopped typing. if (timeout) { clearTimeout(timeout); timeout = null;