lib/citeproc/ruby/renderer/state.rb in citeproc-ruby-1.0.2 vs lib/citeproc/ruby/renderer/state.rb in citeproc-ruby-1.0.3
- old
+ new
@@ -46,13 +46,19 @@
changed
end
def clear!(result = nil)
memories = conserve(result)
+ reset
+ ensure
+ notify_observers :clear!, memories.delete(:mode), memories
+ end
+
+ def reset
@item, @node, @substitute, @authors, @names = nil, nil, nil, [], nil
+ self
ensure
changed
- notify_observers :clear!, memories.delete(:mode), memories
end
def mode
node && node.nodename
end