Skip to content

Commit

Permalink
component: more inheritance chain improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Jan 31, 2014
1 parent 934a6c5 commit e693eba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions opal/lissio/component.rb
Expand Up @@ -51,11 +51,12 @@ def self.inheritance
next unless klass.css

if klass.superclass != Component
next if klass.element != klass.superclass.element
next if klass.tag && !klass.superclass.tag

if a = klass.tag && b = klass.superclass.tag
next if a[:class] != b[:class] || a[:id] != b[:id]
end

next if klass.element != klass.superclass.element
else
next if klass.tag || klass.element
end
Expand Down

0 comments on commit e693eba

Please sign in to comment.