Skip to content

Commit

Permalink
component: update selector generation
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Jan 31, 2014
1 parent ac724e0 commit 6c6f8eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opal/lissio/component.rb
Expand Up @@ -123,6 +123,8 @@ def self.css(&block)
".#{Array(cls).join('.')}"
elsif @element
@element
elsif self.name
self.name.gsub(/::/, '-').downcase
else
".lissio-#{object_id}"
end
Expand Down

0 comments on commit 6c6f8eb

Please sign in to comment.