diff options
author | Stamatis Katsaounis <mokats@intracom-telecom.com> | 2018-11-01 12:44:50 +0200 |
---|---|---|
committer | Stamatis Katsaounis <mokats@intracom-telecom.com> | 2018-11-01 11:08:17 +0000 |
commit | 8ac6a7ef3809cb511b10494d9c1f4654db1e071e (patch) | |
tree | f9d7b80d863f4451ad2359c469366f7170475a4b /3rd_party/static/testapi-ui/assets/lib/jquery/src/core/access.js | |
parent | c53c8c2b31b6734765f0f5638a8bb0e3bf3cff9b (diff) |
Dynamically fetching javascript dependencies
JIRA: DOVETAIL-746
This patch deletes the source code of javascript dependencies from
web portal. Furthermore, it uses npm to install them.
Change-Id: Idc40606ff9e7286aa66421cbbe05f94d7ce9f7e6
Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to '3rd_party/static/testapi-ui/assets/lib/jquery/src/core/access.js')
-rw-r--r-- | 3rd_party/static/testapi-ui/assets/lib/jquery/src/core/access.js | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/access.js b/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/access.js deleted file mode 100644 index 86cdbc7..0000000 --- a/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/access.js +++ /dev/null @@ -1,70 +0,0 @@ -define( [ - "../core" -], function( jQuery ) { - -"use strict"; - -// Multifunctional method to get and set values of a collection -// The value/s can optionally be executed if it's a function -var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - len = elems.length, - bulk = key == null; - - // Sets many values - if ( jQuery.type( key ) === "object" ) { - chainable = true; - for ( i in key ) { - access( elems, fn, i, key[ i ], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !jQuery.isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < len; i++ ) { - fn( - elems[ i ], key, raw ? - value : - value.call( elems[ i ], i, fn( elems[ i ], key ) ) - ); - } - } - } - - if ( chainable ) { - return elems; - } - - // Gets - if ( bulk ) { - return fn.call( elems ); - } - - return len ? fn( elems[ 0 ], key ) : emptyGet; -}; - -return access; - -} ); |