function AnnotationModel(textModel) {
		this._annotations = [];
		var self = this;
		this._listener = {
			onChanged: function(modelChangedEvent) {
				self._onChanged(modelChangedEvent);
			}
		};
		this.setTextModel(textModel);
	}
/**
	 * Constructs an annotation model.
	 * 
	 * @param {orion.editor.TextModel} textModel The text model.
	 * 
	 * @class This object manages annotations for a <code>TextModel</code>.
	 * <p>
	 * <b>See:</b><br/>
	 * {@link orion.editor.Annotation}<br/>
	 * {@link orion.editor.TextModel}<br/> 
	 * </p>	
	 * @name orion.editor.AnnotationModel
	 * @borrows orion.editor.EventTarget#addEventListener as #addEventListener
	 * @borrows orion.editor.EventTarget#removeEventListener as #removeEventListener
	 * @borrows orion.editor.EventTarget#dispatchEvent as #dispatchEvent
	 */
Constructs an annotation model.

@param {orion.editor.TextModel} textModel The text model.

@class This object manages annotations for a TextModel.
Constructs an annotation model . @param { orion . editor . TextModel } textModel The text model . @class This object manages annotations for a TextModel .
function AnnotationModel(textModel) {
		this._annotations = [];
		var self = this;
		this._listener = {
			onChanged: function(modelChangedEvent) {
				self._onChanged(modelChangedEvent);
			}
		};
		this.setTextModel(textModel);
	}
function AnnotationModel ( textModel ) { this . _annotations = [ ] ; var self = this ; this . _listener = { onChanged : function ( modelChangedEvent ) { self . _onChanged ( modelChangedEvent ) ; } } ; this . setTextModel ( textModel ) ; }
Constructs an annotation model.
Constructs an annotation model .