Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed leaking `item` variable to global namespace.

  • Loading branch information...
commit ae1c3c835811c4f41254b5d96207cd75cf112455 1 parent a4245b3
Tomas Brambora realyze authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/feedparser.js
2  lib/feedparser.js
View
@@ -735,7 +735,7 @@ FeedParser.prototype.handleCloseTag = function (el, scope){
Object.merge(self.meta, handleMeta(self.stack[0], self.meta['#type']), true);
self.emit('meta', self.meta);
}
- item = handleItem(n, self.meta['#type']);
+ var item = handleItem(n, self.meta['#type']);
item.meta = self.meta;
if (self.meta.author && !item.author) item.author = self.meta.author;
self.emit('article', item);
Please sign in to comment.
Something went wrong with that request. Please try again.