UNPKG

@devextreme/runtime

Version:

DevExtreme virtual DOM common components

13 lines (12 loc) 495 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateUndefinedFromDefaults = void 0; function updateUndefinedFromDefaults(componentInstance, changes, defaultEntries) { defaultEntries.forEach(function (_a) { var key = _a.key, value = _a.value; if (changes[key] && changes[key].currentValue === undefined) { componentInstance[key] = value; } }); } exports.updateUndefinedFromDefaults = updateUndefinedFromDefaults;