Permalink
Browse files

fixed global leak in listTerms

  • Loading branch information...
chrisumbel committed Mar 6, 2013
1 parent fa53db6 commit 79fbf5ffc36cb25280b97490c5a204c135258110
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/natural/tfidf/tfidf.js
@@ -98,7 +98,7 @@ TfIdf.prototype.tfidf = function(terms, d) {
TfIdf.prototype.listTerms = function(d) {
var terms = [];
- for(term in this.documents[d]) {
+ for(var term in this.documents[d]) {
terms.push({term: term, tfidf: this.tfidf(term, d)})
}

0 comments on commit 79fbf5f

Please sign in to comment.