lib/openwfe/expressions/flowexpression.rb in openwferu-0.9.11 vs lib/openwfe/expressions/flowexpression.rb in openwferu-0.9.12

- old
+ new

@@ -133,11 +133,11 @@ @children.each do |child| next if child.kind_of? String i = get_expression_pool().cancel(child) - inflowitem = i if not inflowitem + inflowitem = i unless inflowitem end inflowitem end @@ -459,9 +459,21 @@ @children.each do |child_fei| get_expression_pool.remove(child_fei) \ if child_fei.kind_of? FlowExpressionId end + end + + # + # Removes a child from the expression children list. + # + def remove_child (child_fei) + + fei = @children.delete child_fei + + store_itself if fei + # + # store_itself if the child was really removed. end # # Currently only used by dollar.rb and its ${r:some_ruby_code}, # returns the binding in this flow expression.