From c9a801d823248301ec0d70b1ab18ee0cfe88174f Mon Sep 17 00:00:00 2001 From: MatthewJA Date: Fri, 19 Dec 2014 21:37:03 +1100 Subject: [PATCH] bugfix for mapovervariables --- coffeequate/src/operators/Pow.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coffeequate/src/operators/Pow.coffee b/coffeequate/src/operators/Pow.coffee index cbe1f93..27d509e 100644 --- a/coffeequate/src/operators/Pow.coffee +++ b/coffeequate/src/operators/Pow.coffee @@ -86,8 +86,8 @@ define [ # @param fun [Function] A function to map over variables. # @return [Pow] A copy of this node with the function mapped over all variables. mapOverVariables: (fun) -> - left = @left.mapOverVariables(fun) - right = @right.mapOverVariables(fun) + left = @children.left.mapOverVariables(fun) + right = @children.right.mapOverVariables(fun) return (new Pow(left, right)) # Expand this node.