diff --git a/core/misc/message.es6.js b/core/misc/message.es6.js index 7dba43cb0f..252d629310 100644 --- a/core/misc/message.es6.js +++ b/core/misc/message.es6.js @@ -20,7 +20,6 @@ * @return {Drupal.Message~messageDefinition} * Class to add and remove messages. */ - Drupal.Message = class { constructor(messageWrapper = null) { this.messageWrapper = messageWrapper; @@ -250,7 +249,7 @@ messageWrapper.setAttribute('aria-label', messagesTypes[type]); - messageWrapper.innerHTML = ` ${text}`; + messageWrapper.innerHTML = `${text}`; return messageWrapper; }; diff --git a/core/misc/message.js b/core/misc/message.js index 2d2af1c082..38bc7b3a3a 100644 --- a/core/misc/message.js +++ b/core/misc/message.js @@ -9,7 +9,6 @@ var _createClass = function () { function defineProperties(target, props) { for function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } (function (Drupal) { - Drupal.Message = function () { function _class() { var messageWrapper = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; @@ -126,7 +125,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons messageWrapper.setAttribute('aria-label', messagesTypes[type]); - messageWrapper.innerHTML = ' ' + text; + messageWrapper.innerHTML = '' + text; return messageWrapper; };