不要怂,就是干,撸起袖子干!

Commit 2538d1c0 by harimohanraj89

fixed usage of _.where to accept an object instead of fxn

1 parent 768c4400
Showing with 1 additions and 3 deletions
...@@ -44,9 +44,7 @@ Comment.prototype.getTag = function(tagName) { ...@@ -44,9 +44,7 @@ Comment.prototype.getTag = function(tagName) {
}; };
Comment.prototype.getTags = function(tagName) { Comment.prototype.getTags = function(tagName) {
return _.where(this.data.tags, function (tag) { return _.where(this.data.tags, { type: tagName });
return tag.type === tagName;
});
}; };
Comment.prototype.hasTag = function(tagName) { Comment.prototype.hasTag = function(tagName) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!