Skip to content

Commit

Permalink
fix #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Lenail committed Jul 29, 2018
1 parent da155b6 commit e99b526
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AlexNet.html
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ <h4>Architecture:</h4>
$("#download").addClass('disabled');
}
$(this).blur();
alexnet.restartRenderer();
alexnet.restartRenderer({'rendererType_':rendererType});
});

$("#color1").change( function () { alexnet.style({'color1_': this.value}); });
Expand Down
4 changes: 3 additions & 1 deletion AlexNet.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ function AlexNet() {
// /////// Draw Graph ///////
// /////////////////////////////////////////////////////////////////////////////

function restartRenderer() {
function restartRenderer({rendererType_=rendererType}={}) {

rendererType = rendererType_;

clearThree(scene);

Expand Down

0 comments on commit e99b526

Please sign in to comment.