diff --git a/js/qvitter.js b/js/qvitter.js index e1b7d9c..ff0fb86 100644 --- a/js/qvitter.js +++ b/js/qvitter.js @@ -3213,6 +3213,10 @@ $('body').on('keyup paste input', 'div.queet-box-syntax', function() { currentVal = currentVal.replace(/
$/, '').replace(/ $/, '').replace(/ $/, ''); // fix $(this).siblings('.syntax-two').html(currentVal); + // If user click post area before load finished (top gnu logo), this is undefined. + if (!window.syntaxHighlightingRegexps) { + window.syntaxHighlightingRegexps = Object(); + } // loop through the regexps and highlight $.each(window.syntaxHighlightingRegexps,function(k,v){