media/js/vendor/selectize/selectize.js
function(value, $els) {
			value = hash_key(value);
	
			if (typeof value !== 'undefined' && value !== null) {
				for (var i = 0, n = $els.length; i < n; i++) {
					if ($els[i].getAttribute('data-value') === value) {
						return $($els[i]);
					}
				}
			}
	
			return $();
		}
function(value, $els) {
			value = hash_key(value);
	
			if (typeof value !== 'undefined' && value !== null) {
				for (var i = 0, n = $els.length; i < n; i++) {
					if ($els[i].getAttribute('data-value') === value) {
						return $($els[i]);
					}
				}
			}
	
			return $();
		}
function ( value , $els ) { value = hash_key ( value ) ; if ( typeof value !== 'undefined' && value !== null ) { for ( var i = 0 , n = $els . length ; i < n ; i ++ ) { if ( $els [ i ] . getAttribute ( 'data-value' ) === value ) { return $ ( $els [ i ] ) ; } } } return $ ( ) ; }
Finds the first element with a "data-value" attribute
that matches the given value.

@param {mixed} value
@param {object} $els
@return {object}
Finds the first element with a data - value attribute that matches the given value .