tinymce.full.js
function () {
        var self = this, time, factory;

        function hideThrobber() {
          if (self.throbber) {
            self.throbber.hide();
            self.throbber = null;
          }
        }

        factory = self.settings.itemsFactory;
        if (!factory) {
          return;
        }

        if (!self.throbber) {
          self.throbber = new Throbber(self.getEl('body'), true);

          if (self.items().length === 0) {
            self.throbber.show();
            self.fire('loading');
          } else {
            self.throbber.show(100, function () {
              self.items().remove();
              self.fire('loading');
            });
          }

          self.on('hide close', hideThrobber);
        }

        self.requestTime = time = new Date().getTime();

        self.settings.itemsFactory(function (items) {
          if (items.length === 0) {
            self.hide();
            return;
          }

          if (self.requestTime !== time) {
            return;
          }

          self.getEl().style.width = '';
          self.getEl('body').style.width = '';

          hideThrobber();
          self.items().remove();
          self.getEl('body').innerHTML = '';

          self.add(items);
          self.renderNew();
          self.fire('loaded');
        });
      }
function () {
        var self = this, time, factory;

        function hideThrobber() {
          if (self.throbber) {
            self.throbber.hide();
            self.throbber = null;
          }
        }

        factory = self.settings.itemsFactory;
        if (!factory) {
          return;
        }

        if (!self.throbber) {
          self.throbber = new Throbber(self.getEl('body'), true);

          if (self.items().length === 0) {
            self.throbber.show();
            self.fire('loading');
          } else {
            self.throbber.show(100, function () {
              self.items().remove();
              self.fire('loading');
            });
          }

          self.on('hide close', hideThrobber);
        }

        self.requestTime = time = new Date().getTime();

        self.settings.itemsFactory(function (items) {
          if (items.length === 0) {
            self.hide();
            return;
          }

          if (self.requestTime !== time) {
            return;
          }

          self.getEl().style.width = '';
          self.getEl('body').style.width = '';

          hideThrobber();
          self.items().remove();
          self.getEl('body').innerHTML = '';

          self.add(items);
          self.renderNew();
          self.fire('loaded');
        });
      }
function ( ) { var self = this , time , factory ; function hideThrobber ( ) { if ( self . throbber ) { self . throbber . hide ( ) ; self . throbber = null ; } } factory = self . settings . itemsFactory ; if ( ! factory ) { return ; } if ( ! self . throbber ) { self . throbber = new Throbber ( self . getEl ( 'body' ) , true ) ; if ( self . items ( ) . length === 0 ) { self . throbber . show ( ) ; self . fire ( 'loading' ) ; } else { self . throbber . show ( 100 , function ( ) { self . items ( ) . remove ( ) ; self . fire ( 'loading' ) ; } ) ; } self . on ( 'hide close' , hideThrobber ) ; } self . requestTime = time = new Date ( ) . getTime ( ) ; self . settings . itemsFactory ( function ( items ) { if ( items . length === 0 ) { self . hide ( ) ; return ; } if ( self . requestTime !== time ) { return ; } self . getEl ( ) . style . width = '' ; self . getEl ( 'body' ) . style . width = '' ; hideThrobber ( ) ; self . items ( ) . remove ( ) ; self . getEl ( 'body' ) . innerHTML = '' ; self . add ( items ) ; self . renderNew ( ) ; self . fire ( 'loaded' ) ; } ) ; }
Loads new items from the factory items function.

@method load
Loads new items from the factory items function .