src/modules/guiEngine/sites.js
function() {
        // Get app.
        return kbox.app.get(self.name)
        // Ignore errors.
        .catch(function() {})
        .then(function(app) {
          if (app) {
            // Return app.
            return app;
          } else {
            // Take a short delay then try again.
            return $q.delay(5 * 1000)
            .then(function() {
              return getApp();
            });
          }
        });
      }
function() {
        // Get app.
        return kbox.app.get(self.name)
        // Ignore errors.
        .catch(function() {})
        .then(function(app) {
          if (app) {
            // Return app.
            return app;
          } else {
            // Take a short delay then try again.
            return $q.delay(5 * 1000)
            .then(function() {
              return getApp();
            });
          }
        });
      }
function ( ) { // Get app. return kbox . app . get ( self . name ) // Ignore errors. . catch ( function ( ) { } ) . then ( function ( app ) { if ( app ) { // Return app. return app ; } else { // Take a short delay then try again. return $q . delay ( 5 * 1000 ) . then ( function ( ) { return getApp ( ) ; } ) ; } } ) ; }
Recursive method to get app object.
Recursive method to get app object .