Skip to content

Commit

Permalink
Fixed bug when using [edit] inside a class scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspard committed Dec 15, 2011
1 parent 8455c7f commit ab16bb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/zena/use/conditional.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def rubyless_class_scope(class_name)
return parser_error("Invalid role or class '#{class_name}'")
end

# Class filtering should not block 'saved_dom_id' propagation.
new_node.saved_dom_id = node.saved_dom_id

if parent.method == 'case'
with_context(:node => new_node) do
r_elsif(cond)
Expand Down

0 comments on commit ab16bb0

Please sign in to comment.