src/Util.js
function (f, cont) {
    var result = f();
    if (result && typeof result.always === 'function') {
      result.always(cont);
    } else {
      cont();
    }
  }
function (f, cont) {
    var result = f();
    if (result && typeof result.always === 'function') {
      result.always(cont);
    } else {
      cont();
    }
  }
function ( f , cont ) { var result = f ( ) ; if ( result && typeof result . always === 'function' ) { result . always ( cont ) ; } else { cont ( ) ; } }
Execute function f, then function cont. If f returns a promise, cont is executed when the promise resolves.
@param {Function} f function to execute first
@param {Function} cont function to execute after f
@memberOf Util
Execute function f then function cont . If f returns a promise cont is executed when the promise resolves .