Skip to content

Commit

Permalink
[Sass] Speed up variable- and mixin-setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Apr 26, 2009
1 parent a2cb35e commit 5647e1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sass/environment.rb
Expand Up @@ -20,10 +20,10 @@ def #{name}(name)
end
def set_#{name}(name, value)
if @parent && @parent.#{name}(name)
@parent.set_#{name}(name, value)
else
if @parent.nil? || @#{name}s.include?(name)
@#{name}s[name] = value
else
@parent.set_#{name}(name, value)
end
end
Expand Down

0 comments on commit 5647e1d

Please sign in to comment.