lib/ruote/exp/fe_command.rb in ruote-2.3.0.1 vs lib/ruote/exp/fe_command.rb in ruote-2.3.0.2
- old
+ new
@@ -1,7 +1,7 @@
#--
-# Copyright (c) 2005-2012, John Mettraux, jmettraux@gmail.com
+# Copyright (c) 2005-2013, John Mettraux, jmettraux@gmail.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@@ -112,12 +112,11 @@
if ref = attribute(:ref)
fei = lookup_variable(ref)
- target = Ruote::FlowExpressionId.is_a_fei?(fei) ?
+ target = Ruote.is_a_fei?(fei) ?
Ruote::Exp::FlowExpression.fetch(@context, fei) : nil
-
target = target.is_a?(Ruote::Exp::CommandedExpression) ?
target : nil
ancestor = target ? ancestor?(target.h.fei) : false