 
   # Called when an XHR request issued by PwnFx.xhr works out.
   _xhr_onload: ->
-    if (@status < 200 || @status >= 300) && (@status != 304)
+    if (@status < 200 || @status >= 300) && (@status isnt 304)
       throw new Error(
           "XHR result ignored due to HTTP #{@status}: #{@statusText}")
     @pwnfxOnData @responseText

class PwnFxHide
  constructor: (element, identifier, scopeId) ->
    trigger = element.getAttribute('data-pwnfx-hide-trigger') || 'click'
    hiddenClass = element.getAttribute('data-pwnfx-hide-class') || 'hidden'
    positiveSelector = "[data-pwnfx-hide-positive=\"#{identifier}\"]"
    negativeSelector = "[data-pwnfx-hide-negative=\"#{identifier}\"]"
    onChange = (event) ->
      positive = (trigger == 'click') || element.checked
      hideSelector = if positive then positiveSelector else negativeSelector
      showSelector = if positive then negativeSelector else positiveSelector


    isHidden = false
    onChange = (event) ->
      value = event.target.value
      willHide = value isnt showValue
      return if isHidden is willHide
      isHidden = willHide

      if replacement
