dashboardjavacloudcoapiotiot-analyticsiot-platformiot-solutionskafkalwm2mmicroservicesmiddlewaremqttnettyplatformsnmpthingsboardvisualizationwebsocketswidgets
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
708 B
26 lines
708 B
'use strict';
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = callOnce;
|
|
|
|
var _warning = require('warning');
|
|
|
|
var _warning2 = _interopRequireDefault(_warning);
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
var CALLED_ONCE = 'muiPrepared';
|
|
|
|
function callOnce() {
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
return function (style) {
|
|
if (style[CALLED_ONCE]) {
|
|
process.env.NODE_ENV !== "production" ? (0, _warning2.default)(false, 'Material-UI: You cannot call prepareStyles() on the same style object more than once.') : void 0;
|
|
}
|
|
style[CALLED_ONCE] = true;
|
|
return style;
|
|
};
|
|
}
|
|
}
|