summaryrefslogtreecommitdiffstats
path: root/vnfmarket/common/thirdparty/jquery/src/manipulation/getAll.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/common/thirdparty/jquery/src/manipulation/getAll.js')
-rw-r--r--vnfmarket/common/thirdparty/jquery/src/manipulation/getAll.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/vnfmarket/common/thirdparty/jquery/src/manipulation/getAll.js b/vnfmarket/common/thirdparty/jquery/src/manipulation/getAll.js
new file mode 100644
index 00000000..f68e3219
--- /dev/null
+++ b/vnfmarket/common/thirdparty/jquery/src/manipulation/getAll.js
@@ -0,0 +1,31 @@
+define( [
+ "../core"
+], function( jQuery ) {
+
+"use strict";
+
+function getAll( context, tag ) {
+
+ // Support: IE <=9 - 11 only
+ // Use typeof to avoid zero-argument method invocation on host objects (#15151)
+ var ret;
+
+ if ( typeof context.getElementsByTagName !== "undefined" ) {
+ ret = context.getElementsByTagName( tag || "*" );
+
+ } else if ( typeof context.querySelectorAll !== "undefined" ) {
+ ret = context.querySelectorAll( tag || "*" );
+
+ } else {
+ ret = [];
+ }
+
+ if ( tag === undefined || tag && jQuery.nodeName( context, tag ) ) {
+ return jQuery.merge( [ context ], ret );
+ }
+
+ return ret;
+}
+
+return getAll;
+} );