motion
Version:
The Motion library for the web
21 lines (16 loc) • 533 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var options = require('../../dom/utils/options.cjs.js');
function updateTargetAndOptions(target, options$1, toApply) {
if (!toApply)
return;
for (const key in toApply) {
if (key === "options")
continue;
target[key] = toApply[key];
if (toApply.options) {
options$1[key] = options.getOptions(toApply.options, key);
}
}
}
exports.updateTargetAndOptions = updateTargetAndOptions;