10 examples of 'done() javascript' in JavaScript

Every line of 'done() javascript' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
189function done() {
190 if (script.length > 0 && config.cancel === false) {
191 handleScript(script);
192 }
193}
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

46function done() {
47 var checkbox = document.getElementById("checkbox");
48 if (checkbox.checked) {
49 localStorage.setItem("inhibit", "true");
50 localStorage.setItem("generation", localStorage.getItem("sgen"));
51 } else {
52 localStorage.setItem("inhibit", "false");
53 }
54 Android.finished();
55}
19function done (button) {
20 let el = document.querySelector(`#${button}-button > i`)
21
22 if (el === undefined || el === null) {
23 console.log('Error getting button ' + button) // eslint-disable-line
24 return
25 }
26
27 el.style.opacity = 0
28
29 setTimeout(() => {
30 el.classList.remove('spin')
31 el.innerHTML = el.dataset.icon
32 el.style.opacity = 1
33 }, 100)
34}
65function doneFunction(error, result, code) {
66 grunt.log.writeln('doneFunction called');
67 if (error) {
68 grunt.log.writeln('error ' + String(error));
69 grunt.fail(error);
70 done();
71 return;
72 }
73
74 if (result) {
75 grunt.log.writeln('result ' + String(result));
76 done();
77 return;
78 }
79
80 // The numeric exit code.
81 if (code) {
82 grunt.log.error('code ' + code);
83 done();
84 return;
85 }
86}
8function done () {
9 scroll()
10 $j('a').click(function () { setTimeout(scroll, 0); setTimeout(scroll, 50) })
11}
140dfd.done(function doneHandler() {
141 $('#tooltip-button').data('tooltip').show();
142 $('#multiselect').data('dropdown').open();
143 $('#datepicker').data('datepicker').openCalendar();
144
145 countTimer = 50;
146 count();
147});
34function loadDone ()
35{
36 $("keepHeaderFixed").checked = getCookie ('keepHeaderFixed', keepHeaderFixed);
37 $("showHiddenFiles").checked = getCookie ('showHiddenFiles', showHiddenFiles);
38 $("showPackageContents").checked = getCookie ('showPackageContents', showPackageContents);
39
40 for (iii = 0; iii < columns.length; iii++)
41 $(columns[iii]).checked = getCookie (columns[iii], eval(columns[iii]));
42
43 tgglHead ();
44
45 if (!simple)
46 {
47 packages = $$('#data_table tr.p');
48 hiddenFiles = $$('#data_table tr.h');
49 for (iii = 0, len = hiddenFiles.length; iii < len; ++iii)
50 hiddenFiles[iii].toggle();
51
52 tgglPackageDingers ();
53 tgglColumns ();
54 setRowClasses ();
55 }
56
57 syncTableWidths ();
58}
421function done(err, status) {
422 if(err) {
423 console.log('There was an error with APIGW Create waterfall callback.');
424 theDoneCallback(err, null);
425 }
426 else {
427 console.log('Callback with rest ID of: ' + restAPIId);
428 theDoneCallback(null, restAPIId);
429 }
430}
145function done() {
146 response.send( resp );
147 return false;
148}
21function done(result) {
22 results.push(result);
23 console.log(new Date().toISOString() + ' ' + result);
24}

Related snippets