WordPress.org

Make WordPress Core

Changeset 33294


Ignore:
Timestamp:
07/16/2015 11:10:28 AM (5 years ago)
Author:
iseulde
Message:

TinyMCE: inline toolbar: fix memory leaks

Part props ungestaltbar.
Fixes #32873.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js

    r33170 r33294  
    765765            } );
    766766
     767            editor.on( 'remove', function() {
     768                toolbar.remove();
     769            } );
     770
    767771            toolbar.reposition = reposition;
    768772            toolbar.hide().renderTo( document.body );
     
    831835        DOM.bind( window, 'resize scroll', hide );
    832836        editor.dom.bind( editor.getWin(), 'resize scroll', hide );
     837
     838        editor.on( 'remove', function() {
     839            DOM.unbind( window, 'resize scroll', hide );
     840            editor.dom.unbind( editor.getWin(), 'resize scroll', hide );
     841        } );
     842
    833843        editor.on( 'blur hide', hide );
    834844
Note: See TracChangeset for help on using the changeset viewer.