Permalink
Browse files

Move call to markStart() so it doesn't occur when JSLint is disabled

  • Loading branch information...
1 parent 9831173 commit 6b29a3a5f01d640f4e7c46a0393a0c84b1c73fe0 @tvoliter tvoliter committed May 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/language/JSLintUtils.js
@@ -52,13 +52,14 @@ define(function (require, exports, module) {
var currentDoc = DocumentManager.getCurrentDocument();
var perfTimerDOM,
- perfTimerLint = PerfUtils.markStart("JSLint linting:\t" + (!currentDoc || currentDoc.file.fullPath));
+ perfTimerLint;
var ext = currentDoc ? PathUtils.filenameExtension(currentDoc.file.fullPath) : "";
var $lintResults = $("#jslint-results");
var $goldStar = $("#gold-star");
if (getEnabled() && /^(\.js|\.htm|\.html)$/i.test(ext)) {
+ perfTimerLint = PerfUtils.markStart("JSLint linting:\t" + (!currentDoc || currentDoc.file.fullPath));
var text = currentDoc.getText();
// If a line contains only whitespace, remove the whitespace

0 comments on commit 6b29a3a

Please sign in to comment.