tinymce.full.js
function (editor, callback, time) {
        var timer;

        timer = wrappedSetInterval(function () {
          if (!editor.removed) {
            callback();
          } else {
            clearInterval(timer);
          }
        }, time);

        return timer;
      }
function (editor, callback, time) {
        var timer;

        timer = wrappedSetInterval(function () {
          if (!editor.removed) {
            callback();
          } else {
            clearInterval(timer);
          }
        }, time);

        return timer;
      }
function ( editor , callback , time ) { var timer ; timer = wrappedSetInterval ( function ( ) { if ( ! editor . removed ) { callback ( ) ; } else { clearInterval ( timer ) ; } } , time ) ; return timer ; }
Sets an interval timer it's similar to setInterval except that it checks if the editor instance is
still alive when the callback gets executed.

@method setEditorInterval
@param {function} callback Callback to execute when interval time runs out.
@param {Number} time Optional time to wait before the callback is executed, defaults to 0.
@return {Number} Timeout id number.
Sets an interval timer it s similar to setInterval except that it checks if the editor instance is still alive when the callback gets executed .