src/js/tooltipster.js
function(content) {
		
		var self = this;
		
		// getter method
		if (content === undefined) {
			return self.__Content;
		}
		// setter method
		else {
			
			if (!self.__destroyed) {
				
				// change the content
				self.__contentSet(content);
				
				if (self.__Content !== null) {
					
					// update the tooltip if it is open
					if (self.__state !== 'closed') {
						
						// reset the content in the tooltip
						self.__contentInsert();
						
						// reposition and resize the tooltip
						self.reposition();
						
						// if we want to play a little animation showing the content changed
						if (self.__options.updateAnimation) {
							
							if (env.hasTransitions) {
								
								// keep the reference in the local scope
								var animation = self.__options.updateAnimation;
								
								self._$tooltip.addClass('tooltipster-update-'+ animation);
								
								// remove the class after a while. The actual duration of the
								// update animation may be shorter, it's set in the CSS rules
								setTimeout(function() {
									
									if (self.__state != 'closed') {
										
										self._$tooltip.removeClass('tooltipster-update-'+ animation);
									}
								}, 1000);
							}
							else {
								self._$tooltip.fadeTo(200, 0.5, function() {
									if (self.__state != 'closed') {
										self._$tooltip.fadeTo(200, 1);
									}
								});
							}
						}
					}
				}
				else {
					self._close();
				}
			}
			else {
				self.__destroyError();
			}
			
			return self;
		}
	}
function(content) {
		
		var self = this;
		
		// getter method
		if (content === undefined) {
			return self.__Content;
		}
		// setter method
		else {
			
			if (!self.__destroyed) {
				
				// change the content
				self.__contentSet(content);
				
				if (self.__Content !== null) {
					
					// update the tooltip if it is open
					if (self.__state !== 'closed') {
						
						// reset the content in the tooltip
						self.__contentInsert();
						
						// reposition and resize the tooltip
						self.reposition();
						
						// if we want to play a little animation showing the content changed
						if (self.__options.updateAnimation) {
							
							if (env.hasTransitions) {
								
								// keep the reference in the local scope
								var animation = self.__options.updateAnimation;
								
								self._$tooltip.addClass('tooltipster-update-'+ animation);
								
								// remove the class after a while. The actual duration of the
								// update animation may be shorter, it's set in the CSS rules
								setTimeout(function() {
									
									if (self.__state != 'closed') {
										
										self._$tooltip.removeClass('tooltipster-update-'+ animation);
									}
								}, 1000);
							}
							else {
								self._$tooltip.fadeTo(200, 0.5, function() {
									if (self.__state != 'closed') {
										self._$tooltip.fadeTo(200, 1);
									}
								});
							}
						}
					}
				}
				else {
					self._close();
				}
			}
			else {
				self.__destroyError();
			}
			
			return self;
		}
	}
function ( content ) { var self = this ; // getter method if ( content === undefined ) { return self . __Content ; } // setter method else { if ( ! self . __destroyed ) { // change the content self . __contentSet ( content ) ; if ( self . __Content !== null ) { // update the tooltip if it is open if ( self . __state !== 'closed' ) { // reset the content in the tooltip self . __contentInsert ( ) ; // reposition and resize the tooltip self . reposition ( ) ; // if we want to play a little animation showing the content changed if ( self . __options . updateAnimation ) { if ( env . hasTransitions ) { // keep the reference in the local scope var animation = self . __options . updateAnimation ; self . _$tooltip . addClass ( 'tooltipster-update-' + animation ) ; // remove the class after a while. The actual duration of the // update animation may be shorter, it's set in the CSS rules setTimeout ( function ( ) { if ( self . __state != 'closed' ) { self . _$tooltip . removeClass ( 'tooltipster-update-' + animation ) ; } } , 1000 ) ; } else { self . _$tooltip . fadeTo ( 200 , 0.5 , function ( ) { if ( self . __state != 'closed' ) { self . _$tooltip . fadeTo ( 200 , 1 ) ; } } ) ; } } } } else { self . _close ( ) ; } } else { self . __destroyError ( ) ; } return self ; } }
Sets or gets the content of the tooltip

@returns {mixed|self}
@public
Sets or gets the content of the tooltip