Every line of 'javascript .done' 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.
189 function done() { 190 if (script.length > 0 && config.cancel === false) { 191 handleScript(script); 192 } 193 }
65 function 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 }
36 function done( error, html ) { 37 if ( error ) { 38 throw error; 39 } 40 console.log( html ); 41 }
46 function 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 }
421 function 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 }