| 123456789101112131415161718 |
- /**
- * DevExtreme (integration/knockout/utils.js)
- * Version: 19.1.16
- * Build date: Tue Oct 18 2022
- *
- * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
- * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
- */
- "use strict";
- var ko = require("knockout");
- var getClosestNodeWithContext = function getClosestNodeWithContext(node) {
- var context = ko.contextFor(node);
- if (!context && node.parentNode) {
- return getClosestNodeWithContext(node.parentNode)
- }
- return node
- };
- module.exports.getClosestNodeWithContext = getClosestNodeWithContext;
|