Skip to content

Commit 4af00fd

Browse files
committed
bug fix
1 parent c0e5494 commit 4af00fd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.16
1+
0.7.17

lib/volt/page/bindings/each_binding.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ def remove
105105
@removed_listener.remove
106106
@removed_listener = nil
107107

108-
@templates.each(&:remove)
109-
@templates = nil
108+
if @templates
109+
@templates.compact.each(&:remove)
110+
@templates = nil
111+
end
110112

111113
super
112114
end

0 commit comments

Comments
 (0)