Skip to content

Commit

Permalink
renamed bind-applets to with-binding
Browse files Browse the repository at this point in the history
  • Loading branch information
rosado committed Sep 11, 2009
1 parent cd682ba commit f315255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rosado/processing/applet.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(:use [rosado.processing :except (size)])
(:import (javax.swing JFrame)))

(defn- bind-applets
(defn- with-binding
"Turn the method map into something one that update-proxy can use."
[methods [method-name f]]
(assoc methods (name method-name)
Expand All @@ -15,7 +15,7 @@
[app-name & opts]
(let [options (assoc (apply hash-map opts) :name (str app-name))
fns (dissoc options :name :title :size)
methods (reduce bind-applets {} fns)]
methods (reduce with-binding {} fns)]
`(def ~app-name
(let [frame# (atom nil)
prx# (proxy [processing.core.PApplet
Expand Down

0 comments on commit f315255

Please sign in to comment.