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

This commit is contained in:
Tim Hunt 2023-08-09 20:44:01 +01:00
parent 1474f74687
commit 788580c9dd
2 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

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) {