function($el) {
		var caret = Math.min(this.caretPos, this.items.length);
		var el = $el[0];
		var target = this.buffer || this.$control[0];

		if (caret === 0) {
			target.insertBefore(el, target.firstChild);
		} else {
			target.insertBefore(el, target.childNodes[caret]);
		}

		this.setCaret(caret + 1);
	}
function($el) {
		var caret = Math.min(this.caretPos, this.items.length);
		var el = $el[0];
		var target = this.buffer || this.$control[0];

		if (caret === 0) {
			target.insertBefore(el, target.firstChild);
		} else {
			target.insertBefore(el, target.childNodes[caret]);
		}

		this.setCaret(caret + 1);
	}
function ( $el ) { var caret = Math . min ( this . caretPos , this . items . length ) ; var el = $el [ 0 ] ; var target = this . buffer || this . $control [ 0 ] ; if ( caret === 0 ) { target . insertBefore ( el , target . firstChild ) ; } else { target . insertBefore ( el , target . childNodes [ caret ] ) ; } this . setCaret ( caret + 1 ) ; }
A helper method for inserting an element
at the current caret position.

@param {object} $el
A helper method for inserting an element at the current caret position .