js/tinymce/plugins/autoresize/plugin.js
function wait(times, interval, callback) {
        Delay.setEditorTimeout(editor, function () {
          resize({});

          if (times--) {
            wait(times, interval, callback);
          } else if (callback) {
            callback();
          }
        }, interval);
      }
function wait(times, interval, callback) {
        Delay.setEditorTimeout(editor, function () {
          resize({});

          if (times--) {
            wait(times, interval, callback);
          } else if (callback) {
            callback();
          }
        }, interval);
      }
function wait ( times , interval , callback ) { Delay . setEditorTimeout ( editor , function ( ) { resize ( { } ) ; if ( times -- ) { wait ( times , interval , callback ) ; } else if ( callback ) { callback ( ) ; } } , interval ) ; }
Calls the resize x times in 100ms intervals. We can't wait for load events since
the CSS files might load async.
Calls the resize x times in 100ms intervals . We can t wait for load events since the CSS files might load async .