Sha256: 2d618d7f2c02b508dfb3bd5cf9320704853076f60fdce8beed2c9a1c34e834fb

Contents?: true

Size: 453 Bytes

Versions: 25

Compression:

Stored size: 453 Bytes

Contents

var Utils = function() {
  /** If possibleFunction is undefined, use otherFunction */
  function fOr(possibleFunction,otherFunction) {
    if (typeof possibleFunction != "undefined") {
      return possibleFunction;
    }
    else {
      return otherFunction;
    }
  };
  /** Turn possibly-undefined into a function */
  function f(possibleFunction) {
    return fOr(possibleFunction,function() {});
  };
  return {
    f:   f,
    fOr: fOr
  };
}();

Version data entries

25 entries across 9 versions & 1 rubygems

Version Path
trickster-1.4.0 js/utils.js
trickster-1.4.0 test/slideshow-with-sass/js/utils.js
trickster-1.4.0 test/slideshow/js/utils.js
trickster-1.3.1 js/utils.js
trickster-1.3.1 test/slideshow/js/utils.js
trickster-1.3.1 test/slideshow-with-sass/js/utils.js
trickster-1.3.0 test/slideshow/js/utils.js
trickster-1.3.0 test/slideshow-with-sass/js/utils.js
trickster-1.3.0 js/utils.js
trickster-1.2.0 test/slideshow/js/utils.js
trickster-1.2.0 test/slideshow-with-sass/js/utils.js
trickster-1.2.0 js/utils.js
trickster-1.1.0 test/slideshow/js/utils.js
trickster-1.1.0 js/utils.js
trickster-1.1.0 test/slideshow-with-sass/js/utils.js
trickster-1.0.0 test/slideshow/js/utils.js
trickster-1.0.0 test/slideshow-with-sass/js/utils.js
trickster-1.0.0 js/utils.js
trickster-0.0.6 js/utils.js
trickster-0.0.6 test/slideshow/js/utils.js