Rather than getting a click bind, I'm getting a list of console messages, as though Javascript is executing the bind's action right away instead of creating a bind:
var biomes = new Array("glacier","desert","forest","grassland","hills","jungle","mountains","ocean","plains","swamp","tundra");
function changeTerrain(biome){
console.log(biome);
}
$(document).ready(function(){
// fill in terrain guide
$.each(biomes,function(x,biome){
$('div#terrainGuide').append("<div class='tile "+biome+"'></div>");
$('div#terrainGuide:last-child').bind({
click: changeTerrain(biome)
});
});
});