Skip to content

Commit

Permalink
Removed some vars from Readability#onopentag
Browse files Browse the repository at this point in the history
Because shorter is better™
  • Loading branch information
fb55 committed Jan 14, 2012
1 parent 85f5594 commit 225fda7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions readabilitySAX.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,10 @@ Readability.prototype._scanLink = function(elem){
};

//parser methods
Readability.prototype.onopentag = function(tagName, attributes){
var parent = this._currentElement,
elem = new Element(tagName, parent);
Readability.prototype.onopentag = function(name, attributes){
this._currentElement = new Element(name, this._currentElement);

this._currentElement = elem;
for(var name in attributes) this._onattribute(name, attributes[name]);
for(name in attributes) this._onattribute(name, attributes[name]);
};

Readability.prototype._onattribute = function(name, value){
Expand Down

0 comments on commit 225fda7

Please sign in to comment.