app/assets/javascripts/games.js
Function handlePieceDrop
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handlePieceDrop( event, ui ) {
var $this = $(this);
var xPos = $this.data('xPos');
var yPos = $this.data('yPos');
destinationPieceId = $this.children().data('pieceId');