123456789101112131415161718192021222324252627 |
- "use strict";
- define(['jquery'], function (jquery) {
- 'use strict';
- $ = $ || 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;
- };
- });
|