Ticket #7092: 7092_2.patch
File 7092_2.patch, 1.2 KB (added by , 12 years ago) |
---|
-
_source/plugins/styles/plugin.js
61 61 // callback. 62 62 var currentState = callback.style.checkActive( ev.data.path ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF; 63 63 64 // If the state changed since the last check. 65 if ( callback.state !== currentState ) 66 { 67 // Call the callback function, passing the current 68 // state to it. 69 callback.fn.call( this, currentState ); 70 71 // Save the current state, so it can be compared next 72 // time. 73 callback.state = currentState; 74 } 75 } 64 // Call the callback function, passing the current 65 // state to it. 66 callback.fn.call( this, currentState ); 67 } 76 68 }); 77 69 } 78 70 … … 703 695 * them before removal. 704 696 */ 705 697 element.mergeSiblings(); 706 removeFromElement( this, element ); 707 698 if ( element.getName() == this.element ) 699 removeFromElement( this, element ); 700 else 701 removeOverrides( element, getOverrides( this )[ element.getName() ] ); 708 702 } 709 703 } 710 704 }