function TextModel(text, lineDelimiter) {
		this._lastLineIndex = -1;
		this._text = [""];
		this._lineOffsets = [0];
		this.setText(text);
		this.setLineDelimiter(lineDelimiter);
	}
/**
	 * Constructs a new TextModel with the given text and default line delimiter.
	 *
	 * @param {String} [text=""] the text that the model will store
	 * @param {String} [lineDelimiter=platform delimiter] the line delimiter used when inserting new lines to the model.
	 *
	 * @name orion.editor.TextModel
	 * @class The TextModel is an interface that provides text for the view. Applications may
	 * implement the TextModel interface to provide a custom store for the view content. The
	 * view interacts with its text model in order to access and update the text that is being
	 * displayed and edited in the view. This is the default implementation.
	 * <p>
	 * <b>See:</b><br/>
	 * {@link orion.editor.TextView}<br/>
	 * {@link orion.editor.TextView#setModel}
	 * </p>
	 * @borrows orion.editor.EventTarget#addEventListener as #addEventListener
	 * @borrows orion.editor.EventTarget#removeEventListener as #removeEventListener
	 * @borrows orion.editor.EventTarget#dispatchEvent as #dispatchEvent
	 */
Constructs a new TextModel with the given text and default line delimiter.
@param {String} [text=""] the text that the model will store
@param {String} [lineDelimiter=platform delimiter] the line delimiter used when inserting new lines to the model.

@name orion.editor.TextModel
@class The TextModel is an interface that provides text for the view. Applications may
implement the TextModel interface to provide a custom store for the view content. The
view interacts with its text model in order to access and update the text that is being
displayed and edited in the view. This is the default implementation.
Constructs a new TextModel with the given text and default line delimiter . @param { String } [ text = " " ] the text that the model will store @param { String } [ lineDelimiter = platform delimiter ] the line delimiter used when inserting new lines to the model . @name orion . editor . TextModel @class The TextModel is an interface that provides text for the view . Applications may implement the TextModel interface to provide a custom store for the view content . The view interacts with its text model in order to access and update the text that is being displayed and edited in the view . This is the default implementation .
function TextModel(text, lineDelimiter) {
		this._lastLineIndex = -1;
		this._text = [""];
		this._lineOffsets = [0];
		this.setText(text);
		this.setLineDelimiter(lineDelimiter);
	}
function TextModel ( text , lineDelimiter ) { this . _lastLineIndex = - 1 ; this . _text = [ "" ] ; this . _lineOffsets = [ 0 ] ; this . setText ( text ) ; this . setLineDelimiter ( lineDelimiter ) ; }
Constructs a new TextModel with the given text and default line delimiter.
Constructs a new TextModel with the given text and default line delimiter .