Ticket #3157: 3157.patch

File 3157.patch, 633 bytes (added by Garry Yao, 15 years ago)
  • _source/plugins/dialog/plugin.js

     
    10271027                         */
    10281028                        add : function( name, dialogDefinition )
    10291029                        {
    1030                                 this._.dialogDefinitions[name] = dialogDefinition;
     1030                                // Avoid path registration from multiple instances override definition.
     1031                                if ( !this._.dialogDefinitions[name]
     1032                                        || typeof  dialogDefinition == 'function' )
     1033                                        this._.dialogDefinitions[name] = dialogDefinition;
    10311034                        },
    10321035
    10331036                        exists : function( name )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy