           (remove $parent)
           (delete-wish-rem $parent))))))
 
-(delegate $body "#icon-about" :click
+(on $body :click "#icon-about" nil
   (fn [e]
     (when (empty? ($ info-box))
       (show-info!))))
 
-(delegate $body "#info-close,#info-container" :click
+(on $body :click "#info-close,#info-container" nil
   (fn [e]
     (hide-info!)))
 
 ; Don't allow refresh unless a wishlist is chosen.
-(delegate $body "#icon-refresh" :click
+(on $body :click "#icon-refresh" nil
   (fn [e]
     (let [code (get-path)]
       (when-not (empty? code)


; DELEGATES

(delegate $body "#create-wishlist" :click
  (fn [e]
    (create-wishlist-rem)))

; When wishlist title is changed and not empty, update the title on remote.
(delegate $header wishlist-title :change
  (fn [e]
    (this-as me
      (when-not (empty? (val ($ me)))

; object), check whether or not this is the last wish on the page and
; update or create accordingly. Also remove wishes with empty descriptions
; unless they are children of a li.last. 
(on $content :change ".description" nil
  (fn [e]
    (this-as me
      (let [$me ($ me)
