Replace .done(), .fail() etc with Native Promise followup ( .then() ) #1

Closed
opened 2023-08-08 22:26:42 +02:00 by pmkuipers · 0 comments
Owner

https://moodledev.io/docs/guides/javascript#promises

Indicates that

You shouldn't use the done, fail, or always functions on Promises. These are a jQuery feature which isn't present in the Native Promise implementation.

This should be replaced with proper .then responses.
We have been using .done() and .fail() on ajax calls....

https://moodledev.io/docs/guides/javascript#promises Indicates that > You shouldn't use the done, fail, or always functions on Promises. These are a jQuery feature which isn't present in the Native Promise implementation. This should be replaced with proper .then responses. We have been using .done() and .fail() on ajax calls....
pmkuipers added the
Kind
Deprecation issue
label 2023-08-31 22:54:59 +02:00
pmkuipers added this to the Folluwup improvements milestone 2023-08-31 22:55:41 +02:00
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Miqra-Engineering/moodle_local_treestudyplan#1
No description provided.