Merge remote-tracking branch 'origin/master' into gh-pages

This commit is contained in:
synth-ruiner 2015-03-01 17:26:47 +00:00
commit 5981e92bb0
1 changed files with 7 additions and 1 deletions

View File

@ -253,7 +253,13 @@
} }
function updateMinesLeft() { function updateMinesLeft() {
$('#mines').text("Mines left: " + $('.mine:not(.revealed):not(.flagged)').length); //unflagged mines - revealed mines - flagged not-mines
$('#mines').text(
"Mines left: "
+ ($('.mine:not(.flagged)').length
- $('.mine.revealed').length
- $('li:not(.mine).flagged').length)
);
} }
$.fn.rowScore = function() { $.fn.rowScore = function() {