#2445: V3: Private variable and functions in the code
-------------------------------------+--------------------------------------
 Reporter:  fredck                   |       Owner:              
     Type:  New Feature              |      Status:  new         
 Priority:  Normal                   |   Milestone:  CKEditor 3.0
Component:  General                  |     Version:              
 Keywords:  Confirmed V3ProtoStruct  |  
-------------------------------------+--------------------------------------
 Whenever possible, the CKEditor prototype code defines private stuff
 inside closures, so the CKEDITOR object and the window scope remain clean.

 In some cases, specially on classes, there are private things that we to
 be defined "per instance". There is no way to define those privates on
 closures, so those kinds of things must be defined as properties in the
 objects itself.

 To have a clean code, making also the DOM inspection clearer, a standard
 has been used in the prototype. All private things are defined under a
 single property called "_" (underscore).

 To have an overview of the effect we have with it, just open any of the
 samples and select the DOM tab in FireBug. Then, navigate  through the
 CKEDITOR object tree. You will find things like CKEDITOR._ and
 CKEDITOR.plugins._.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2445>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to