UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

25 lines (24 loc) 784 B
/** * DevExtreme (ui/validation/validation_mixin.js) * Version: 18.1.3 * Build date: Tue May 15 2018 * * Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; var ValidationMixin = { _findGroup: function() { var $dxGroup, group = this.option("validationGroup"); if (!group) { $dxGroup = this.$element().parents(".dx-validationgroup").first(); if ($dxGroup.length) { group = $dxGroup.dxValidationGroup("instance") } else { group = this._modelByElement(this.$element()) } } return group } }; module.exports = ValidationMixin;