Comparing version 0.1.90 to 0.1.91
@@ -27,3 +27,3 @@ "use strict"; | ||
Flex.prototype.componentWillMount = function () { | ||
this.flexClassesCache = this.flexClasses(); | ||
this.flexClassesCache = this.flexClasses(this.props); | ||
}; | ||
@@ -62,8 +62,7 @@ Flex.prototype.componentWillUpdate = function (nextProps) { | ||
if (shortcutPropsUpdated || breakpointsUpdated) { | ||
this.flexClassesCache = this.flexClasses(); | ||
this.flexClassesCache = this.flexClasses(nextProps); | ||
} | ||
}; | ||
Flex.prototype.flexClasses = function () { | ||
Flex.prototype.flexClasses = function (props) { | ||
var _this = this; | ||
var props = this.props; | ||
// Build a map of classes keyed by their normal name | ||
@@ -70,0 +69,0 @@ var shortcutClasses = utils_1.flatten(Object.keys(this.shortcutProps) |
{ | ||
"name": "cosmo-ui", | ||
"version": "0.1.90", | ||
"version": "0.1.91", | ||
"description": "Common React components", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
637940
260
3919