Skip to content

Commit

Permalink
Remove unused 'index' argument from the Element.remove method.
Browse files Browse the repository at this point in the history
Part of #2.
  • Loading branch information
Kami committed Apr 28, 2013
1 parent 8c3b639 commit 6af64d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elementtree.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Element.prototype.insert = function(index, element)
this._children[index] = element;
};

Element.prototype.remove = function(index, element)
Element.prototype.remove = function(element)
{
this._children = this._children.filter(function(e) {
/* TODO: is this the right way to do this? */
Expand Down

0 comments on commit 6af64d7

Please sign in to comment.