at path:
ROOT
/
sistema
/
vendors
/
jquery
/
src
/
core
/
access.js
run:
R
W
Run
var
DIR
2026-04-09 04:12:40
R
W
Run
access.js
1.19 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
init.js
3.49 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
parseHTML.js
1000 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
ready.js
2.34 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
error_log
up
📄
access.js
Save
define( [ "../core" ], function( jQuery ) { // 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 ) ) ); } } } return chainable ? elems : // Gets bulk ? fn.call( elems ) : len ? fn( elems[ 0 ], key ) : emptyGet; }; return access; } );