code: function() {
  			/* Destroy rulers*/
  			for (var i=0; i< this._rulers.length; i++) {
  				this._rulers[i].setView(null);
  			}
  			this.rulers = null;
  			
  			this._destroyView();
  
  			var e = {type: "Destroy"}; //$NON-NLS-1$
  			this.onDestroy(e);
  
  			this._parent = null;
  			if (this._model && this._model.destroy) {
  				this._model.destroy();
  			}
  			this._model = null;
  			this._theme = null;
  			this._selection = null;
  			this._doubleClickSelection = null;
  			this._keyModes = null;
  			this._actions = null;
  		}
docs: Destroys the text view.
  <p>
  Removes the view from the page and frees all resources created by the view.
  Calling this function causes the "Destroy" event to be fire so that all components
  attached to view can release their references.
  </p>
  
  @see orion.editor.TextView#onDestroy