doc: removed unecessary code from example code evaluator

This commit is contained in:
Gion Kunz 2015-06-06 19:35:17 +02:00
parent 4b0a7b732c
commit b598ea5f25

View File

@ -12,9 +12,6 @@ function evalChartistCode(code, chartElement) {
// Remove any declaration of $chart as we are passing $chart to our function eval
modified = modified.replace(/var \$chart.+;/, '');
if(chartElement.__chartist__) {
chartElement.__chartist__.detach();
}
var $chartElement = $(chartElement).empty();
try {