From 55d74f86440a5a804d4551e04f7fd39518af0723 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Fri, 12 May 2017 01:49:57 +0800 Subject: add web portal framework for TestAPI Change-Id: I62cea8b59ffe6a6cde98051c130f4502c07d3557 Signed-off-by: SerenaFeng --- .../assets/lib/jquery/src/manipulation/getAll.js | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/getAll.js (limited to 'testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/getAll.js') diff --git a/testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/getAll.js b/testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/getAll.js new file mode 100644 index 0000000..fede6c7 --- /dev/null +++ b/testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/getAll.js @@ -0,0 +1,32 @@ +define( [ + "../core", + "../core/nodeName" +], function( jQuery, nodeName ) { + +"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 && nodeName( context, tag ) ) { + return jQuery.merge( [ context ], ret ); + } + + return ret; +} + +return getAll; +} ); -- cgit 1.2.3-korg