     ;; position el to align with right edge of browser (plus padding) or
     ;; center on link if not on edge
     (when (and (>= tooltip-right (- $innerWidth 25))
-               (< $innerWidth min-brwsr-wdth--tt-algn))
+               (< $innerWidth min-brwsr-wdth-tt-algn))
       (.css $tooltip-el (js-obj
         "left" right-align-position
         "top" tooltip-top)))

        $tooltip-el ($ (str "#" (:id tt)))
        tooltip-height (.outerHeight $tooltip-el)
        tooltip-width (.outerWidth $tooltip-el)
        tt-width-half (half tooltip-width)
        tooltip-left (- (+ link-x (half link-width)) (half tooltip-width))
        tooltip-right (+ (+ link-x (half link-width)) (half tooltip-width))
        tooltip-top (+ link-y link-height 4)


    ;; position the el
    (.css $tooltip-el (js-obj
      "left" tooltip-left
      "top" tooltip-top))

    ;; position el to align with left edge of browser (plus padding) or
    ;; center on link if not on edge
    (when (and (<= tooltip-left 200)
               (< $innerWidth min-brwsr-wdth-tt-algn))
      (.css $tooltip-el (js-obj
        "left" 10
        "top" tooltip-top)))
