From 0971a91698a6ae2e5dd70447bd76f59964162669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 18 Jul 2017 11:26:11 +0200 Subject: [PATCH] Change variable name to match upstream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/codemirror/CodeMirror/pull/4861 Signed-off-by: Michal Čihař --- js/codemirror/addon/lint/lint.js | 4 ++-- js/codemirror/addon/lint/sql-lint.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/codemirror/addon/lint/lint.js b/js/codemirror/addon/lint/lint.js index 13dbb40cff..77fe3f00be 100644 --- a/js/codemirror/addon/lint/lint.js +++ b/js/codemirror/addon/lint/lint.js @@ -116,8 +116,8 @@ * The HTML support is patched, submitted upstream at * https://github.com/codemirror/CodeMirror/pull/4861 */ - if (typeof ann.message_html != 'undefined') { - tip.innerHTML = ann.message_html; + if (typeof ann.messageHTML != 'undefined') { + tip.innerHTML = ann.messageHTML; } else { tip.appendChild(document.createTextNode(ann.message)); } diff --git a/js/codemirror/addon/lint/sql-lint.js b/js/codemirror/addon/lint/sql-lint.js index cce8cc8403..fb5c6258ea 100644 --- a/js/codemirror/addon/lint/sql-lint.js +++ b/js/codemirror/addon/lint/sql-lint.js @@ -16,7 +16,7 @@ CodeMirror.sqlLint = function(text, updateLinting, options, cm) { to: CodeMirror.Pos( response[idx].toLine, response[idx].toColumn ), - message_html: response[idx].message, + messageHTML: response[idx].message, severity : response[idx].severity }); }