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
resolve when the handle is not in pendings