Skip to content

Commit b5bfd3d

Browse files
committed
Amended printInfo function.
1 parent 8a064fc commit b5bfd3d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

drawings/simple_graph.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,16 +235,18 @@ Drawing.SimpleGraph = function(options) {
235235
function animate() {
236236
requestAnimationFrame( animate );
237237
render();
238-
printInfo();
238+
if(that.show_info) {
239+
printInfo();
240+
}
239241
}
240242

241243

242244
function render() {
243245
if(!graph.layout.finished) {
244-
info_text.calc = "Calculating layout..."
246+
info_text.calc = "Calculating layout...";
245247
graph.layout.generate();
246248
} else {
247-
info_text.calc = ""
249+
info_text.calc = "";
248250
}
249251

250252
for(var i=0; i<geometries.length; i++) {

0 commit comments

Comments
 (0)