by SoapSeller · 13y ago · 0 comments
so something like:
north: function() { movePlayer("north"); },
becomes: north: movePlayer.bind(this, "north"),
or using underscore.js(for greater browser compatibility): north: _.bind(movePlayer, this, "north"),It looks basically equivalent but more confusing to me.