mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-78962 core/loadingicon: remove jQuery requirement in the API
This commit is contained in:
parent
1474f74687
commit
788580c9dd
File diff suppressed because one or more lines are too long
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user