Skip to content

Commit

Permalink
bugfix for mapovervariables
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewJA committed Dec 19, 2014
1 parent fbd37c2 commit c9a801d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coffeequate/src/operators/Pow.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c9a801d

Please sign in to comment.