     if target of locale
       result = locale[target]
     else continue
-    return result if localeName == language
-    generalResult = result if localeName == generalName
-    fallbackResult = result if localeName == fallback
-    fallforwardResult = result if localeName.indexOf(language) == 0 and not fallforwardResult?
+    return result if localeName is language
+    generalResult = result if localeName is generalName
+    fallbackResult = result if localeName is fallback
+    fallforwardResult = result if localeName.indexOf(language) is 0 and not fallforwardResult?
 
   return generalResult if generalResult?
   return fallforwardResult if fallforwardResult?

hexToR = (h) -> parseInt (cutHex(h)).substring(0, 2), 16
hexToG = (h) -> parseInt (cutHex(h)).substring(2, 4), 16
hexToB = (h) -> parseInt (cutHex(h)).substring(4, 6), 16
cutHex = (h) -> (if (h.charAt(0) is "#") then h.substring(1, 7) else h)

module.exports.hslToHex = (hsl) ->
  '#' + (toHex(n) for n in hslToRgb(hsl...)).join('')

  if _.isString(func_thing)
    func = object[func_thing]
    if not func
      console.error "Could not find method #{func_thing} in object #{@}"
      return => null # always return a func, or Mediator will go boom
    func_thing = func
  return func_thing
