Remove ownership when using NodeSet#delete.

This commit is contained in:
Yorick Peterse committed 2014-07-01 10:15:39 +02:00
1 parent 4b408eae4f
commit e69fbc3ea7
2 files changed
+14 -3

No files matched your search

+5 -1
View File
@@ -188,7 +188,11 @@ module Oga
# Removes a node from the current set only.
#
def delete(node)
@nodes.delete(node)
removed = @nodes.delete(node)
remove_ownership(removed) if removed
return removed
end
##