Skip to content

Commit 02e31b4

Browse files
committed
Replace done with then
1 parent a8a3e51 commit 02e31b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/_static/javascripts/version_dropdown.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ async function add_version_dropdown(json_loc, target_loc, text) {
6060

6161
const p = $.getJSON(json_loc);
6262
console.log(p);
63-
64-
p.done(onDone).fail(onFail).always(onAlways);
63+
64+
p.then(onVersions).fail(onFail).always(onAlways);
6565
await p;
6666

6767
/**
@@ -71,7 +71,7 @@ async function add_version_dropdown(json_loc, target_loc, text) {
7171
* @param {Object} versions - versions object
7272
* @returns {Promise} promise which resolves upon processing version data
7373
*/
74-
async function onDone(versions) {
74+
async function onVersions(versions) {
7575
console.log(versions);
7676

7777
// Resolve the current browser URL:

0 commit comments

Comments
 (0)