Skip to content
Browse files

remove global var; full on recursion

  • Loading branch information...
1 parent 98215f6 commit b6a5f960419ea3f6293e6f50c89bbcad624f621b @aeosynth committed Feb 4, 2011
Showing with 4 additions and 8 deletions.
  1. +4 −8 ccss.coffee
View
12 ccss.coffee
@@ -1,6 +1,6 @@
-css = ''
+@compile = (ccss) ->
+ css = ''
-compile = (ccss) ->
for selector, pairs of ccss
# a pair can be a css declaration, or a pair of the child ccss object
child = {}
@@ -20,10 +20,6 @@ compile = (ccss) ->
css += declarations
css += '}\n'
- compile child
+ css += @compile child
-@compile = (ccss) ->
- compile ccss
- ret = css
- css = ''
- ret
+ css

0 comments on commit b6a5f96

Please sign in to comment.
Something went wrong with that request. Please try again.