Changeset 6432


Ignore:
Timestamp:
02/14/11 11:12:27 (4 years ago)
Author:
garry.yao
Message:

#7092:Remove command state change guard in inline style callback.

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r6431 r6432  
    5353                <li><a href="http://dev.ckeditor.com/ticket/6901">#6901</a> : Mixed direction content was not properly respected on a shared toolbar.</li>
    5454                <li><a href="http://dev.ckeditor.com/ticket/4809">#4809</a> : Table related tags are outputted in wrong order.</li>
     55                <li><a href="http://dev.ckeditor.com/ticket/7092">#7092</a> : Corrupted toolbar button state for inline style after switch to source.</li>
    5556                <li>Updated the following language files:<ul>
    5657                        <li><a href="http://dev.ckeditor.com/ticket/7124">#7124</a> : Czech;</li>
  • CKEditor/trunk/_source/plugins/styles/plugin.js

    r6415 r6432  
    6262                                        var currentState = callback.style.checkActive( ev.data.path ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF;
    6363
    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                                         }
     64                                        // Call the callback function, passing the current
     65                                        // state to it.
     66                                        callback.fn.call( this, currentState );
    7567                                }
    7668                        });
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2015 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy