Permalink
Browse files

rename vars

  • Loading branch information...
1 parent b6a5f96 commit 3033d6269ef7ef5773227253e0832cf19067ac65 @aeosynth committed Feb 6, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 ccss.coffee
View
@@ -1,14 +1,14 @@
-@compile = (ccss) ->
+@compile = (rules) ->
css = ''
- for selector, pairs of ccss
- # a pair can be a css declaration, or a pair of the child ccss object
- child = {}
+ for selector, pairs of rules
+ # a pair is either a css declaration, or a nested rule
declarations = ''
+ nested = {}
for key, value of pairs
if typeof value is 'object'
- child["#{selector} #{key}"] = value
+ nested["#{selector} #{key}"] = value
else
#borderRadius -> border-radius
key = key.replace /[A-Z]/g, (s) -> '-' + s.toLowerCase()
@@ -20,6 +20,6 @@
css += declarations
css += '}\n'
- css += @compile child
+ css += @compile nested
css

0 comments on commit 3033d62

Please sign in to comment.