src/services/view-manager.js
function() {
    // Reset views
    var resetPromised = {};
    angular.forEach(_activeSet, function(view, id) {
      resetPromised[id] = $q.when(view.reset());
    });

    // Empty active set
    _activeSet = {};

    return $q.all(resetPromised);
  }
function() {
    // Reset views
    var resetPromised = {};
    angular.forEach(_activeSet, function(view, id) {
      resetPromised[id] = $q.when(view.reset());
    });

    // Empty active set
    _activeSet = {};

    return $q.all(resetPromised);
  }
function ( ) { // Reset views var resetPromised = { } ; angular . forEach ( _activeSet , function ( view , id ) { resetPromised [ id ] = $q . when ( view . reset ( ) ) ; } ) ; // Empty active set _activeSet = { } ; return $q . all ( resetPromised ) ; }
Reset active views

@return {Promise} A promise fulfilled when currently active views are reset
Reset active views