Changes between Version 1 and Version 2 of Ticket #10603, comment 2


Ignore:
Timestamp:
Jul 9, 2013, 6:52:29 PM (11 years ago)
Author:
Tim Dionne
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10603, comment 2

    v1 v2  
    22
    33Before packaging:
    4 
     4{{{
    55488                         this.config = CKEDITOR.tools.prototypedCopy( CKEDITOR.config );
     6}}}
    67
    78After packaging (packaged ckeditor.js):
    8 
     9{{{
    9103101           z.config = e.prototypedCopy(i); // z is assigned to this on line 3090
    10 
     11}}}
    1112Note that 'i' has been used in place of CKEDITOR.config.  The 'i' that is used in the for loop I mentioned, because it is not declared with var, when it is assigned a new value, the runtime looks up the scope chain and finds the config object, and then replaces it.  I have stepped through the code and watched it happen.
    1213
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy