src/node/js/node.js
function(node, position) {
	position = position || 'before';

	if( position == 'before'  ) {
		this._node.parentNode.insertBefore(node._node, this._node);
	} else if ( position == 'after' ) {
		this._node.parentNode.insertBefore(node._node, this.next() ? this.next()._node : null);
	}
}
function(node, position) {
	position = position || 'before';

	if( position == 'before'  ) {
		this._node.parentNode.insertBefore(node._node, this._node);
	} else if ( position == 'after' ) {
		this._node.parentNode.insertBefore(node._node, this.next() ? this.next()._node : null);
	}
}
function ( node , position ) { position = position || 'before' ; if ( position == 'before' ) { this . _node . parentNode . insertBefore ( node . _node , this . _node ) ; } else if ( position == 'after' ) { this . _node . parentNode . insertBefore ( node . _node , this . next ( ) ? this . next ( ) . _node : null ) ; } }
Inserts a given node into this node at the proper position
Inserts a given node into this node at the proper position