Permalink
Browse files

fixing the nan votes issue

  • Loading branch information...
dhavalsdoshi committed Apr 8, 2012
1 parent 8a356b6 commit 7100d4f5ef57451f5ea122b6b3cdb227104636e0
Showing with 3 additions and 1 deletion.
  1. +3 −1 public/js/sticky.js
View
@@ -90,7 +90,9 @@ Sticky.prototype.remove = function(){
Sticky.prototype.update = function(text,votes){
this.text = $.trim(text);
- this.votes = votes;
+ if(votes){
+ this.votes = votes;
+ }
this.updateDom();
};

0 comments on commit 7100d4f

Please sign in to comment.