lib/volt/templates/template_renderer.rb in volt-0.3.0 vs lib/volt/templates/template_renderer.rb in volt-0.3.1

- old
+ new

@@ -23,10 +23,14 @@ bindings.each_pair do |id,bindings_for_id| bindings_for_id.each do |binding| @sub_bindings << binding.call(target, context, id) end end + + if @context.respond_to?(:dom_ready) + @context.dom_ready + end end def remove # puts "Remove Template: #{self} - #{@sub_bindings.inspect}" @@ -39,10 +43,17 @@ binding.remove # puts "REMOVED" end @sub_bindings = [] + super + + # Let the controller know we removed + if @context.respond_to?(:dom_removed) + @context.dom_removed + end + end def remove_anchors section.remove_anchors end \ No newline at end of file