diff --git a/core/core.libraries.yml b/core/core.libraries.yml index fa04996533..0ac4725aeb 100644 --- a/core/core.libraries.yml +++ b/core/core.libraries.yml @@ -855,7 +855,7 @@ loadjs: url: https://github.com/muicss/loadjs/blob/master/LICENSE.txt gpl-compatible: true js: - assets/vendor/loadjs/loadjs.min.js: { minified: true } + assets/vendor/loadjs/loadjs.min.js: {} matchmedia: remote: https://github.com/paulirish/matchMedia.js diff --git a/core/lib/Drupal/Core/Ajax/AddJsCommand.php b/core/lib/Drupal/Core/Ajax/AddJsCommand.php index 5ca58fd7b0..5739ba22c2 100644 --- a/core/lib/Drupal/Core/Ajax/AddJsCommand.php +++ b/core/lib/Drupal/Core/Ajax/AddJsCommand.php @@ -47,7 +47,7 @@ class AddJsCommand implements CommandInterface { * @param string $method * The DOM manipulation method to be used. */ - public function __construct($selector, $scripts, $method = 'appendChild') { + public function __construct($selector, array $scripts, $method = 'appendChild') { $this->selector = $selector; $this->styles = $scripts; $this->method = $method; diff --git a/core/misc/ajax.es6.js b/core/misc/ajax.es6.js index 91410bf2aa..5a9c6c92ed 100644 --- a/core/misc/ajax.es6.js +++ b/core/misc/ajax.es6.js @@ -883,7 +883,7 @@ const result = this.commands[command](this, response[key], status); if (typeof result === 'object' && typeof result.then === 'function') { - // handle a promise + // Handle a promise. result.done(() => { if (currentIndex + 1 === responseKeys.length) { this.ajaxDeferred.resolve();