This bug had been fixed for Drupal 6: #403728: none.js is broken when Drupal.behaviors.textarea is not initialized..

I guess that the bug was created during the Drupal 7 port.

The line

if (Drupal.behaviors.textarea.attach) {

Drupal.behaviors.textarea is undefined


sun’s picture

Status:Needs review» Needs work

I think we just want to remove the .attach from the line.

jantimon’s picture

Status:Needs work» Needs review
542 bytes

You are probably right - there won't be a behavior without an attach function.

TwoD’s picture

Status:Needs review» Fixed

Committed #2 to D7 branch.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.