Skip to content

Commit

Permalink
stringify for better performance when passing Mojo::DOM objects to Mo…
Browse files Browse the repository at this point in the history
…jo::DOM
  • Loading branch information
kraih committed Dec 7, 2014
1 parent fc0f89b commit 54517db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/DOM.pm
Expand Up @@ -133,7 +133,7 @@ sub parent {
return _build($self, $self->_parent, $self->xml);
}

sub parse { shift->_delegate(parse => shift) }
sub parse { shift->_delegate(parse => "$_[0]") }

sub prepend { shift->_add(0, @_) }

Expand Down

0 comments on commit 54517db

Please sign in to comment.