Changes between Version 1 and Version 2 of Ticket #10603, comment 2
- Timestamp:
- Jul 9, 2013, 6:52:29 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10603, comment 2
v1 v2 2 2 3 3 Before packaging: 4 4 {{{ 5 5 488 this.config = CKEDITOR.tools.prototypedCopy( CKEDITOR.config ); 6 }}} 6 7 7 8 After packaging (packaged ckeditor.js): 8 9 {{{ 9 10 3101 z.config = e.prototypedCopy(i); // z is assigned to this on line 3090 10 11 }}} 11 12 Note 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. 12 13