diff options
author | Chouser <chouser@n01se.net> | 2008-09-16 03:08:35 +0000 |
---|---|---|
committer | Chouser <chouser@n01se.net> | 2008-09-16 03:08:35 +0000 |
commit | 384245bfd53480891ca251bbb026560bac984586 (patch) | |
tree | 978327716d5c354530099c547413ad9232aaf8ec /clojurescript/clj.js | |
parent | d610e924360349f418d3ec46e085c94773d7c6b7 (diff) |
ClojureScript: more logic in emit code to produce less verbose JavaScript.
Diffstat (limited to 'clojurescript/clj.js')
-rw-r--r-- | clojurescript/clj.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/clojurescript/clj.js b/clojurescript/clj.js index 4fd572c2..deaa9523 100644 --- a/clojurescript/clj.js +++ b/clojurescript/clj.js @@ -39,13 +39,8 @@ clojure = { throw ("count not supported on: " + (typeof x) + " " + x.constructor); }, JS: { - resolveVar: function( symns, symnm, ctxns ) { - if( symns ) { - return symns[ symnm ]; - } - else { - return ctxns[ symnm ] || clojure[ symnm ] || window[ symnm ]; - } + resolveVar: function( sym, ctxns ) { + return ctxns[ sym ] || clojure[ sym ] || window[ sym ]; }, ObjSeq: { create: function( obj ) { |