diff --git a/AlexNet.html b/AlexNet.html index 0058c57..367c700 100644 --- a/AlexNet.html +++ b/AlexNet.html @@ -341,7 +341,7 @@

Architecture:

$("#download").addClass('disabled'); } $(this).blur(); - alexnet.restartRenderer(); + alexnet.restartRenderer({'rendererType_':rendererType}); }); $("#color1").change( function () { alexnet.style({'color1_': this.value}); }); diff --git a/AlexNet.js b/AlexNet.js index 1a48fea..2532cdc 100644 --- a/AlexNet.js +++ b/AlexNet.js @@ -81,7 +81,9 @@ function AlexNet() { // /////// Draw Graph /////// // ///////////////////////////////////////////////////////////////////////////// - function restartRenderer() { + function restartRenderer({rendererType_=rendererType}={}) { + + rendererType = rendererType_; clearThree(scene);