"use strict"; /** * Licensed Materials - Property of IBM * IBM Cognos Products: Cognos Analytics * Copyright IBM Corp. 2015, 2017 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ define(['jquery'], function (jquery) { 'use strict'; //NOSONAR $ = $ || jquery; $.fn.selectNode = function (name) { var result = this.children().filter(function () { return this.localName === name; }); return result; }; $.fn.byAttributeValue = function (name, value) { var result = this.filter(function () { return $(this).attr(name) === value; }); return result; }; });