'use strict';

// MODULES //

var plot = require( './../components/plot.js' );


// RENDER //

/**
* Renders a time series plot as a virtual DOM tree.
*
* @private
* @returns {VTree} virtual tree
*/
function render() {
	/* jshint validthis: true */ // TODO: eslint
	var vtree;

	// Generate the plot:
	vtree = plot( this );

	// Announce that a new tree has been rendered:
	this.emit( 'render', vtree );

	return vtree;
} // end FUNCTION render()


// EXPORTS //

module.exports = render;

'use strict';

// MODULES //

var debug = require( 'debug' )( 'time-series:engine:render' );
var plot = require( './../components/plot.js' );


// RENDER //

/**
* Renders a time series plot as a virtual DOM tree.
*
* @private
* @returns {VTree} virtual tree
*/
function render() {
	/* jshint validthis: true */ // TODO: eslint
	var vtree;

	debug( 'Rendering plot...' );

	// Generate the plot:
	vtree = plot( this );

	// Announce that a new tree has been rendered:
	this.emit( 'render', vtree );

	return vtree;
} // end FUNCTION render()


// EXPORTS //

module.exports = render;

Add debug statement