Permalink
Browse files

Fixed leaky variable

  • Loading branch information...
1 parent 9a2a685 commit 8659c0a2b564d4d99b4660de477690f3dc17f4f0 @yozlet yozlet committed with Jul 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/scripts/pos.js
View
@@ -430,7 +430,7 @@ POSTagger.prototype.tag = function(words){
* Apply transformational rules
**/
for (var i = 0; i < words.length; i++) {
- word = ret[i];
+ var word = ret[i];
// rule 1: DT, {VBD | VBP} --> DT, NN
if (i > 0 && ret[i - 1] == "DT") {
if (word == "VBD" ||

0 comments on commit 8659c0a

Please sign in to comment.