Index: _whatsnew.html
===================================================================
--- _whatsnew.html (revision 2400)
+++ _whatsnew.html (working copy)
@@ -62,6 +62,8 @@
now are shown properly.
[#2496] Using the Paste
dialogs in IE might insert the content at the start of the editor.
+ [#2516] Replaced the
+ extension AddItem of Array with the standard "push" method.
See previous versions history
Index: editor/_source/fckjscoreextensions.js
===================================================================
--- editor/_source/fckjscoreextensions.js (revision 2371)
+++ editor/_source/fckjscoreextensions.js (working copy)
@@ -148,13 +148,6 @@
return this.replace( regExp, replacement ) ;
}
-Array.prototype.AddItem = function( item )
-{
- var i = this.length ;
- this[ i ] = item ;
- return i ;
-}
-
Array.prototype.IndexOf = function( value )
{
for ( var i = 0 ; i < this.length ; i++ )
Index: editor/_source/internals/fckconfig.js
===================================================================
--- editor/_source/internals/fckconfig.js (revision 2371)
+++ editor/_source/internals/fckconfig.js (working copy)
@@ -154,7 +154,7 @@
FCKConfig.Plugins.Add = function( name, langs, path )
{
- FCKConfig.Plugins.Items.AddItem( [name, langs, path] ) ;
+ FCKConfig.Plugins.Items.push( [name, langs, path] ) ;
}
// FCKConfig.ProtectedSource: object that holds a collection of Regular
@@ -180,7 +180,7 @@
FCKConfig.ProtectedSource.Add = function( regexPattern )
{
- this.RegexEntries.AddItem( regexPattern ) ;
+ this.RegexEntries.push( regexPattern ) ;
}
FCKConfig.ProtectedSource.Protect = function( html )
Index: editor/_source/internals/fckdocumentprocessor.js
===================================================================
--- editor/_source/internals/fckdocumentprocessor.js (revision 2371)
+++ editor/_source/internals/fckdocumentprocessor.js (working copy)
@@ -27,7 +27,7 @@
FCKDocumentProcessor.AppendNew = function()
{
var oNewItem = new Object() ;
- this._Items.AddItem( oNewItem ) ;
+ this._Items.push( oNewItem ) ;
return oNewItem ;
}