From 8d0de398fd77474a05dc34377028dd5db8de9c24 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 13 Dec 2012 08:54:21 +0000 Subject: [PATCH] Only if codeAssist is on run JS Hint --- editor.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/editor.php b/editor.php index 6f98a5f..eceb8ff 100644 --- a/editor.php +++ b/editor.php @@ -183,8 +183,10 @@ function createNewCMInstance(num) { top.document.getElementById('results').innerHTML = top.ICEcoder.results.length + " results"; top.ICEcoder.findMode = false; } - clearTimeout(window['cM'+num+'waiting']); - window['cM'+num+'waiting'] = setTimeout(top.ICEcoder.updateHints, 100); + if (top.ICEcoder.codeAssist) { + clearTimeout(window['cM'+num+'waiting']); + window['cM'+num+'waiting'] = setTimeout(top.ICEcoder.updateHints, 100); + } } );