Browse Source

Fixed examples toggle button.

Mr.doob 7 năm trước cách đây
mục cha
commit
d97be6696b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/index.html

+ 1 - 1
examples/index.html

@@ -261,7 +261,7 @@
 		var expandButton = document.getElementById( 'expandButton' );
 		expandButton.addEventListener( 'click', function ( event ) {
 			event.preventDefault();
-			panel.classList.remove( 'collapsed' );
+			panel.classList.toggle( 'collapsed' );
 		} );
 
 		// iOS iframe auto-resize workaround