Explorar o código

Fixed examples toggle button.

Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
d97be6696b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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