mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[findTestSubject] remove
This commit is contained in:
parent
96a34069c4
commit
c46cb43e76
2 changed files with 1 additions and 21 deletions
19
src/ui/public/jquery/findTestSubject.js
vendored
19
src/ui/public/jquery/findTestSubject.js
vendored
|
@ -1,19 +0,0 @@
|
|||
module.exports = function bindToJquery($) {
|
||||
|
||||
$.fn.findTestSubject = function (/* ...subjectSelectors */) {
|
||||
var subjectSelectors = [].slice.apply(arguments);
|
||||
var $els = $();
|
||||
var $context = this;
|
||||
|
||||
subjectSelectors.forEach(function (subjects) {
|
||||
var selector = subjects.split(/\s+/).map(function (subject) {
|
||||
return '[data-test-subj~="' + subject + '"]';
|
||||
}).join(' ');
|
||||
|
||||
$els = $els.add($context.find(selector));
|
||||
});
|
||||
|
||||
return $els;
|
||||
};
|
||||
|
||||
};
|
3
webpackShims/jquery.js
vendored
3
webpackShims/jquery.js
vendored
|
@ -1,2 +1 @@
|
|||
var $ = window.jQuery = window.$ = module.exports = require('node_modules/jquery/dist/jquery');
|
||||
require('ui/jquery/findTestSubject')($);
|
||||
window.jQuery = window.$ = module.exports = require('node_modules/jquery/dist/jquery');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue