Plato on Github
Report Home
dojo/tests/support/ready.js
Maintainability
85.08
Lines of code
15
Difficulty
6.46
Estimated Errors
0.05
Function weight
By Complexity
By SLOC
define([ 'intern/dojo/node!leadfoot/helpers/pollUntil' ], function (pollUntil) { function ready(remote, url, timeout) { return remote .get(url) .then(pollUntil( 'return typeof ready !== "undefined" && ready ? true : undefined;', [], typeof timeout === 'undefined' ? 5000 : timeout )); } return ready; });