#2912: V3: Encapsulate the command state change logic inside the 
CKEDITOR.command
class
-----------------------+----------------------------------------------------
 Reporter:  fredck     |       Owner:  fredck      
     Type:  Bug        |      Status:  new         
 Priority:  High       |   Milestone:  CKEditor 3.0
Component:  General    |     Version:              
 Keywords:  Confirmed  |  
-----------------------+----------------------------------------------------
 There is a common repetition in the current code:

 {{{
 var command = editor.getCommand( name );
 command.state = newState;
 command.fire( 'state' );
 }}}

 This logic could be encapsulated inside the CKEDITOR.command class, so we
 can achieve the same thing with:

 {{{
 editor.getCommand( name ).setState( newState );
 }}}

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2912>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to