compare tiles properly
This commit is contained in:
parent
60b4846779
commit
0cfef1f5fc
|
@ -293,7 +293,7 @@ $(document).ready(function() {
|
|||
// even if we want to "always create new tiles" we still don't want to create duplicates
|
||||
// THIS SEEMS TO NOT BE WORKING
|
||||
var bestMatch = _.find(bitsyData.tiles, function(tile) {
|
||||
return tile.bitmap === pseudoTile;
|
||||
return _.isEqual(tile.bitmap, pseudoTile);
|
||||
});
|
||||
|
||||
if (bestMatch) {
|
||||
|
|
Loading…
Reference in New Issue