Przeglądaj źródła

removed return false to fix return error in IE 11

Dale Stammen 12 lat temu
rodzic
commit
451b63f29e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      examples/canvas_interactive_voxelpainter.html

+ 2 - 2
examples/canvas_interactive_voxelpainter.html

@@ -43,7 +43,7 @@
 				info.style.top = '10px';
 				info.style.width = '100%';
 				info.style.textAlign = 'center';
-				info.innerHTML = '<a href="http://threejs.org" target="_blank">three.js</a> - voxel painter<br><strong>click</strong>: add voxel, <strong>control + click</strong>: remove voxel, <strong>shift</strong>: rotate, <a href="javascript:save();return false;">save .png</a>';
+				info.innerHTML = '<a href="http://threejs.org" target="_blank">three.js</a> - voxel painter<br><strong>click</strong>: add voxel, <strong>control + click</strong>: remove voxel, <strong>shift</strong>: rotate, <a href="javascript:save()">save .png</a>';
 				container.appendChild( info );
 
 				camera = new THREE.PerspectiveCamera( 40, window.innerWidth / window.innerHeight, 1, 10000 );
@@ -227,7 +227,7 @@
 			function save() {
 
 				window.open( renderer.domElement.toDataURL('image/png'), 'mywindow' );
-
+                return false;
 			}
 
 			//