nexus site path corrected
[portal.git] / ecomp-portal-FE / client / bower_components / jquery / src / manipulation / getAll.js
1 define( [
2         "../core"
3 ], function( jQuery ) {
4
5 function getAll( context, tag ) {
6
7         // Support: IE9-11+
8         // Use typeof to avoid zero-argument method invocation on host objects (#15151)
9         var ret = typeof context.getElementsByTagName !== "undefined" ?
10                         context.getElementsByTagName( tag || "*" ) :
11                         typeof context.querySelectorAll !== "undefined" ?
12                                 context.querySelectorAll( tag || "*" ) :
13                         [];
14
15         return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
16                 jQuery.merge( [ context ], ret ) :
17                 ret;
18 }
19
20 return getAll;
21 } );