               inRepeater = true
 
           if rule.type == "Hanuman::CalculationRule"
-            self.updateCalculation(rule)
+            self.updateCalculation(rule, $ruleContainer)
           else
             self.checkConditionsAndHideShow(rule.conditions, ancestorId, $ruleContainer, $ruleContainer, inRepeater, matchType, rule)
 

          # bind conditions based on element type
          # text, textarea, select
          if $conditionElement.length < 2
            self.bindConditions($conditionElement, rule)
          # radio buttons
          else
            if $conditionElement.is(":checkbox")

    return

  #bind conditions to question
  bindConditions: ($triggerElement, rule, $ruleContainer) ->
    $triggerElement.on "change", ->
      ## If this is a calculation rule, we don't care about conditional logic, we just want to re-run the calculations since a value has changed
      if rule.type == "Hanuman::CalculationRule"
        self.updateCalculation(rule, $ruleContainer)
        return

      # pop out of condition into rules to handle all conditions defined in the rule
