caves/newgame/2011/demo-common.js
// Utility matching goog.bind, but fault-tolerant
Utility matching goog.bind, but fault-tolerant
Utility matching goog . bind but fault - tolerant
function bind(fn, target) {
  return function() {
    if (fn) {
      return fn.apply(target, arguments);
    }
  };
}
function bind ( fn , target ) { return function ( ) { if ( fn ) { return fn . apply ( target , arguments ) ; } } ; }
Utility matching goog.bind, but fault-tolerant
Utility matching goog . bind but fault - tolerant