code: function (text) {
  		if (!(typeof text !== "undefined" && text !== null)) return this._text;
  		if (typeof(text) == "function")
  			this._text = text.call(this);
  		else
  			this._text = text;
  		this.trigger("Change");
  		return this;
  	}
docs: @
  #.text
  @comp Text
  @sign public this .text(String text)
  @sign public this .text(Function textgenerator)
  @param text - String of text that will be inserted into the DOM or Canvas element.
  
  This method will update the text inside the entity.
  
  If you need to reference attributes on the entity itself you can pass a function instead of a string.
  
  @example
  ~~~
  Crafty.e("2D, DOM, Text").attr({ x: 100, y: 100 }).text("Look at me!!");
  
  Crafty.e("2D, DOM, Text").attr({ x: 100, y: 100 })
  .text(function () { return "My position is " + this._x });
  
  Crafty.e("2D, Canvas, Text").attr({ x: 100, y: 100 }).text("Look at me!!");
  
  Crafty.e("2D, Canvas, Text").attr({ x: 100, y: 100 })
  .text(function () { return "My position is " + this._x });
  ~~~