Skip to content

Commit

Permalink
Update theme-manager.js
Browse files Browse the repository at this point in the history
rename modifyRawThemeZIndices to modifyRawThemeZIndex
  • Loading branch information
woshiwenzhijie committed Dec 15, 2015
1 parent 0740e8c commit acf8ba2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/styles/theme-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ export default {
let newRawTheme = update(muiTheme.rawTheme, {fontFamily: {$set: newFontFamily}});
return this.getMuiTheme(newRawTheme);
},

//function to modify the zIndex of the raw theme. This function recomputes
//the MUI theme and returns it based on the new raw theme.
modifyRawThemeZIndices: function(muiTheme, newZIndicesKeys) {
let newZIndices = Extend(muiTheme.rawTheme.zIndex, newZIndicesKeys);
let newRawTheme = update(muiTheme.rawTheme, {zIndex: {$set: newZIndices}});
modifyRawThemeZIndex: function(muiTheme, newZIndexKeys) {
let newZIndex = Extend(muiTheme.rawTheme.zIndex, newZIndexKeys);
let newRawTheme = update(muiTheme.rawTheme, {zIndex: {$set: newZIndex}});
return this.getMuiTheme(newRawTheme);
},

Expand Down

0 comments on commit acf8ba2

Please sign in to comment.