Changeset 726

Show
Ignore:
Timestamp:
09/20/08 06:49:13 (18 months ago)
Author:
scott.gonzalez
Message:

Core: Fixed #3457: Removing elements causes instantiated plugins to be destroyed again.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/ui.core.js

    r716 r726  
    1414var _remove = $.fn.remove; 
    1515$.fn.remove = function() { 
    16         $("*", this).add(this).triggerHandler("remove"); 
     16        // TODO: add comment about why we can't use .trigger() 
     17        $("*", this).add(this).each(function() { 
     18                $(this).triggerHandler("remove"); 
     19        }); 
    1720        return _remove.apply(this, arguments ); 
    1821};