Browse files

Smaller tmp var names

  • Loading branch information...
1 parent c2bd35e commit fe3619de2697abd7dd15507feaa80e2e0969f445 Adam Beynon committed Jun 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/opal/parser.rb
View
6 lib/opal/parser.rb
@@ -140,7 +140,7 @@ def mid_to_jsid(mid)
# guaranteed unique id per file..
def unique_temp
- "__tmp_#{@unique += 1}"
+ "__t#{@unique += 1}"
end
def top(sexp, options = {})
@@ -165,10 +165,10 @@ def top(sexp, options = {})
pre += DEBUG_CODE if @debug
uniques = []
- @unique.times { |i| uniques << "__tmp_#{i+1}" }
+ @unique.times { |i| uniques << "__t#{i+1}" }
unless uniques.empty?
- post += ";var #{uniques.join ', '};"
+ pre += ";var #{uniques.join ', '};"
end
post += "\n}"

0 comments on commit fe3619d

Please sign in to comment.