diff --git a/misc/collapse.js b/misc/collapse.js
index e6905ac087e7b06334267c594d6c62c518730c91..21b730c2da8a107d5955ba07f4e449782601db75 100644
--- a/misc/collapse.js
+++ b/misc/collapse.js
@@ -24,7 +24,7 @@ function collapseAutoAttach() {
         collapseScrollIntoView(this.parentNode.parentNode);
         if (typeof textAreaInit != 'undefined') {
           // Add the grippie to a textarea in a collapsed fieldset.
-          textAreaInit(this.parentNode.parentNode);
+          textAreaAutoAttach(null, this.parentNode.parentNode);
         }
       }
       this.blur();
diff --git a/misc/textarea.js b/misc/textarea.js
index fc98f15448fd544af3f915d550c902067c1e363a..23f24d29d359dc6cff9d3b2762e730ce85c20187 100644
--- a/misc/textarea.js
+++ b/misc/textarea.js
@@ -4,7 +4,7 @@ if (isJsEnabled()) {
   addLoadEvent(textAreaInit);
 }
 
-function textAreaInit(parent) {
+function textAreaAutoAttach(event, parent) {
   if (typeof parent == 'undefined') {
     // Attach to all visible textareas.
     textareas = document.getElementsByTagName('textarea');