Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(theming): make theme inheritance not depend on DOM order
Browse files Browse the repository at this point in the history
references #2483
  • Loading branch information
rschmukler committed Jun 21, 2015
1 parent dd11583 commit 73b1df4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/services/theming/theming.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ function ThemingProvider($mdColorPalette) {
if (oldTheme) el.removeClass('md-' + oldTheme +'-theme');
el.addClass('md-' + theme + '-theme');
el.data('$mdThemeName', theme);
if (ctrl) {
el.data('$mdThemeController', ctrl);
}
}
};

Expand Down

0 comments on commit 73b1df4

Please sign in to comment.