Ticket #3077: 3077_3.patch

File 3077_3.patch, 3.1 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/menu/plugin.js

     
    5151                        this.editor = editor;
    5252                        this.items = [];
    5353
    54                         this._ =
    55                         {
    56                                 level : level || 1
    57                         };
     54                        this._.level = level || 1;
    5855                },
    5956
    6057                _ :
  • _source/plugins/contextmenu/plugin.js

     
    1919        {
    2020                this.id = 'cke_' + CKEDITOR.tools.getNextNumber();
    2121                this.editor = editor;
    22                 this._ =
    23                 {
    24                         listeners : [],
    25 
    26                         functionId : CKEDITOR.tools.addFunction( function( commandName )
    27                                 {
    28                                         this._.panel.hide();
    29                                         editor.focus();
    30                                         editor.execCommand( commandName );
    31                                 },
    32                                 this)
    33                 }
     22                this._.listeners = [];
     23                this._.functionId = CKEDITOR.tools.addFunction( function( commandName )
     24                        {
     25                                this._.panel.hide();
     26                                editor.focus();
     27                                editor.execCommand( commandName );
     28                        },
     29                        this);
    3430        },
    3531
    3632        _ :
  • _source/plugins/listblock/plugin.js

     
    2525
    2626                                        this.multiSelect = !!multiSelect;
    2727
    28                                         this._ =
    29                                         {
    30                                                 pendingHtml : [],
    31                                                 items : {},
    32                                                 groups : {}
    33                                         };
     28                                        this._.pendingHtml = [];
     29                                        this._.items = {};
     30                                        this._.groups = {};
    3431                                },
    3532
    3633                                _ :
  • _source/core/tools.js

     
    387387                {
    388388                        return function() { return func.apply( obj, arguments ); };
    389389                },
    390 
     390               
     391                /**
     392                 * Class creation based on prototype inheritance, with supports of the
     393                 * following features:
     394                 * <ul>
     395                 * <li> Static fields </li>
     396                 * <li> Private fields </li>
     397                 * <li> Public(prototype) fields </li>
     398                 * <li> Chainable base class constructor </li>
     399                 * </ul>
     400                 *
     401                 * @param {Object} definiton (Optional)The class definiton object.
     402                 */
    391403                createClass : function( definition )
    392404                {
    393405                        var $ = definition.$,
     
    401413                                var originalConstructor = $;
    402414                                $ = function()
    403415                                {
    404                                         originalConstructor.apply( this, arguments );
    405                                        
    406416                                        // Create (and get) the private namespace.
    407417                                        var _ = this._ || ( this._ = {} );
    408418                                       
     
    415425                                                _[ privateName ] =
    416426                                                        ( typeof priv == 'function' ) ? CKEDITOR.tools.bind( priv, this ) : priv;
    417427                                        }
     428                                       
     429                                        originalConstructor.apply( this, arguments );
    418430                                };
    419431                        }
    420432
     
    421433                        if ( baseClass )
    422434                        {
    423435                                $.prototype = this.prototypedCopy( baseClass.prototype );
    424 
     436                                $.prototype.constructor = $;
    425437                                $.prototype.base = function()
    426438                                {
    427439                                        this.base = baseClass.prototype.base;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy