1/** 2 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com 3 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 4 */ 5(function ($) { 6 /*! 7 * jQuery fm Plugin 8 * version: 0.1 9 * Copyright (c) 2014 Nate Cavanaugh / Liferay Inc. 10 * Dual licensed under the MIT and GPL licenses. 11 */ 12 $.fn.fm = function (name, value) { 13 var instance = this; 14 var retVal = instance; 15 16 if (arguments.length === 1) { 17 var nodes = instance.map(function (index, item) { 18 var formEl = item.form || item; 19 20 if (formEl && $.nodeName(formEl, 'form')) { 21 var form = $(formEl); 22 var ns = form.data('fm.namespace') || form.data('fm-namespace') || ''; 23 var inputName = ns + name; 24 var inputNode = formEl[inputName] || formEl.ownerDocument.getElementById(inputName); 25 26 if (inputNode && !inputNode.nodeName) { 27 inputNode = $.makeArray(inputNode); 28 } 29 30 return inputNode; 31 } 32 }); 33 retVal = nodes; 34 } else { 35 if (typeof name === 'string') { 36 instance.data('fm.' + name, value); 37 } 38 } 39 40 return retVal; 41 }; 42})(window.$); 43//# sourceMappingURL=fm.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.