tinymce.full.js
function wait(testCallback, waitCallback) {
          if (!testCallback()) {
            // Wait for timeout
            if ((new Date().getTime()) - startTime < maxLoadTime) {
              Delay.setTimeout(waitCallback);
            } else {
              failed();
            }
          }
        }
function wait(testCallback, waitCallback) {
          if (!testCallback()) {
            // Wait for timeout
            if ((new Date().getTime()) - startTime < maxLoadTime) {
              Delay.setTimeout(waitCallback);
            } else {
              failed();
            }
          }
        }
function wait ( testCallback , waitCallback ) { if ( ! testCallback ( ) ) { // Wait for timeout if ( ( new Date ( ) . getTime ( ) ) - startTime < maxLoadTime ) { Delay . setTimeout ( waitCallback ) ; } else { failed ( ) ; } } }
Calls the waitCallback until the test returns true or the timeout occurs
Calls the waitCallback until the test returns true or the timeout occurs