src/core/services/registry/componentRegistry.js
function resolveWhen() {
          var dfd = pendings[handle];
          if (dfd) {
            dfd.forEach(function (promise) {
              promise.resolve(instance);
            });
            delete pendings[handle];
          }
        }
function resolveWhen() {
          var dfd = pendings[handle];
          if (dfd) {
            dfd.forEach(function (promise) {
              promise.resolve(instance);
            });
            delete pendings[handle];
          }
        }
function resolveWhen ( ) { var dfd = pendings [ handle ] ; if ( dfd ) { dfd . forEach ( function ( promise ) { promise . resolve ( instance ) ; } ) ; delete pendings [ handle ] ; } }
Resolve any pending promises for this instance
Resolve any pending promises for this instance