lib/murky/dict.rb in murky_waters-0.1.3 vs lib/murky/dict.rb in murky_waters-0.1.4
- old
+ new
@@ -51,10 +51,10 @@
@changed = true
data.delete(key)
end
def root
- @root = @changed ? compute_root : @root
+ @root = (@changed || @root.nil?) ? compute_root : @root
end
def each(&block)
data.each(&block)
end
\ No newline at end of file