aboutsummaryrefslogtreecommitdiff
path: root/clojurescript/clj.js
diff options
context:
space:
mode:
authorChouser <chouser@n01se.net>2008-09-23 23:51:37 +0000
committerChouser <chouser@n01se.net>2008-09-23 23:51:37 +0000
commit2d10026e88a8e1a70189889beb0cf3c0a372f637 (patch)
tree3d739ae89d0caf123696d3ecf709f259d8661ed7 /clojurescript/clj.js
parent442d95e129e58eaecf76f4db583ad81c510cfad1 (diff)
ClojureScript: Chrome doesn't set function.arity: changed lazy apply so it doesn't rely on arity.
Diffstat (limited to 'clojurescript/clj.js')
-rw-r--r--clojurescript/clj.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/clojurescript/clj.js b/clojurescript/clj.js
index cccd3c66..dc02b756 100644
--- a/clojurescript/clj.js
+++ b/clojurescript/clj.js
@@ -129,7 +129,8 @@ clojure = new clojure_Namespace({
JS: {
merge: clojure_merge,
global: clojure_global,
- variatic: function( f ) {
+ variatic: function( arity, f ) {
+ f.arity = arity;
f.isVariatic = true;
return f;
},