Ticket #2516: 2516.patch

File 2516.patch, 2.3 KB (added by Alfonso Martínez de Lizarrondo, 12 years ago)

Proposed patch

  • _whatsnew.html

     
    6262                        now are shown properly.</li>
    6363                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2496">#2496</a>] Using the Paste
    6464                        dialogs in IE might insert the content at the start of the editor.</li>
     65                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2516">#2516</a>] Replaced the
     66                        extension AddItem of Array with the standard "push" method.</li>
    6567        </ul>
    6668        <p>
    6769                <a href="_whatsnew_history.html">See previous versions history</a></p>
  • editor/_source/fckjscoreextensions.js

     
    148148                return this.replace( regExp, replacement ) ;
    149149}
    150150
    151 Array.prototype.AddItem = function( item )
    152 {
    153         var i = this.length ;
    154         this[ i ] = item ;
    155         return i ;
    156 }
    157 
    158151Array.prototype.IndexOf = function( value )
    159152{
    160153        for ( var i = 0 ; i < this.length ; i++ )
  • editor/_source/internals/fckconfig.js

     
    154154
    155155FCKConfig.Plugins.Add = function( name, langs, path )
    156156{
    157         FCKConfig.Plugins.Items.AddItem( [name, langs, path] ) ;
     157        FCKConfig.Plugins.Items.push( [name, langs, path] ) ;
    158158}
    159159
    160160// FCKConfig.ProtectedSource: object that holds a collection of Regular
     
    180180
    181181FCKConfig.ProtectedSource.Add = function( regexPattern )
    182182{
    183         this.RegexEntries.AddItem( regexPattern ) ;
     183        this.RegexEntries.push( regexPattern ) ;
    184184}
    185185
    186186FCKConfig.ProtectedSource.Protect = function( html )
  • editor/_source/internals/fckdocumentprocessor.js

     
    2727FCKDocumentProcessor.AppendNew = function()
    2828{
    2929        var oNewItem = new Object() ;
    30         this._Items.AddItem( oNewItem ) ;
     30        this._Items.push( oNewItem ) ;
    3131        return oNewItem ;
    3232}
    3333
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy