From 774db6869d33f35ee944be014e182454201bf6eb Mon Sep 17 00:00:00 2001 From: ColCh Date: Tue, 17 Nov 2015 12:55:30 +0300 Subject: [PATCH] Trigger counter update if number equals zero and zeroes option specified --- src/social-likes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/social-likes.js b/src/social-likes.js index 0e59f25..901686c 100644 --- a/src/social-likes.js +++ b/src/social-likes.js @@ -338,7 +338,9 @@ } }, updateCounter: function(e, service, number) { - if (number) { + number = number || 0; + + if (number || this.options.zeroes) { this.number += number; if (this.single) { this.getCounterElem().text(this.number);