MDL-78962 core/loadingicon: remove jQuery requirement in the API

This commit is contained in:
Tim Hunt
2023-08-09 21:17:05 +01:00
parent 6f40d9ffd7
commit 8905ebffb7
2 changed files with 4 additions and 4 deletions
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -35,7 +35,7 @@ define(['jquery', 'core/templates'], function($, Templates) {
* Resolution of the returned promise causes the icon to be faded out and removed.
*
* @method addIconToContainer
* @param {jQuery} container The element to add the spinner to
* @param {jQuery|HTMLElement} container The element to add the spinner to
* @return {Promise} The Promise used to create the icon.
*/
var addIconToContainer = function(container) {
@@ -55,7 +55,7 @@ define(['jquery', 'core/templates'], function($, Templates) {
* Resolution of the returned promise causes the icon to be faded out and removed.
*
* @method addIconToContainerWithPromise
* @param {jQuery} container The element to add the spinner to
* @param {jQuery|HTMLElement} container The element to add the spinner to
* @param {Promise} loadingIconPromise The jQuery Promise which determines the removal of the icon
* @return {jQuery} The Promise used to create and then remove the icon.
*/
@@ -87,7 +87,7 @@ define(['jquery', 'core/templates'], function($, Templates) {
* Resolution of the returned promise causes the icon to be faded out and removed.
*
* @method addIconToContainerWithPromise
* @param {jQuery} container The element to add the spinner to
* @param {jQuery|HTMLElement} container The element to add the spinner to
* @return {Promise} A jQuery Promise to resolve when ready
*/
var addIconToContainerWithPromise = function(container) {