lib/nanoc/base/services/notification_center.rb in nanoc-4.3.2 vs lib/nanoc/base/services/notification_center.rb in nanoc-4.3.3

- old
+ new

@@ -65,9 +65,16 @@ # Remove relevant observers @notifications[name].reject! { |i| i[:id] == id } end + # @api private + # + # @return [void] + def reset + @notifications = nil + end + private def initialize_if_necessary(name) @notifications ||= {} # name => observers dictionary @notifications[name] ||= [] # list of observers