 (ns wishlistd.client.main
   (:require [crate.core :as crate]
             [fetch.remotes :as remotes])
-  (:use [jayq.core :only [$ remove append empty find val delegate data]])
+  (:use [jayq.core :only [$ remove append empty find val data on]])
   (:use-macros [crate.macros :only [defpartial]]
                [fetch.macros :only [letrem]]))
 

          (update-wish-rem $parent))))))

; Only delete if the wish is not "last".
(delegate $content ".delete" :click
  (fn [e]
    (this-as me
      (let [$parent (.parent ($ 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)
