after: function(data) {
    var object = $(data.data);
    $(data.selector).after(object);
    Drupal.attachBehaviors(object);
  },

but:

  before: function(data) {
    var html = $(data.selector).before(data.data);
    Drupal.attachBehaviors(html);
  },

The later cannot work.

Comments

merlinofchaos’s picture

Status: Active » Fixed

Correct. Fix committed. Thanks!

Status: Fixed » Closed (fixed)

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