#940: Array prototype extensions breaks plugin code that uses "for(var i in
<Array object>)"
------------------------+---------------------------------------------------
  Reporter:  paulvrugt  |       Owner:                 
      Type:  Bug        |      Status:  closed         
  Priority:  Normal     |   Milestone:                 
 Component:  General    |     Version:  FCKeditor 2.4.3
Resolution:  invalid    |    Keywords:                 
------------------------+---------------------------------------------------
Changes (by fredck):

  * keywords:  Array Prototype IndexOf AddItem =>
  * status:  new => closed
  * resolution:  => invalid

Comment:

 You are wrongly using an array in your sample. You should use and Object
 instead:

 {{{
 var objArray = new Object();
 objArray['key1'] = 'value1';
 objArray['key2'] = 'value2';

 for(var strKey in objArray)
     alert(objArray[strKey]);
 }}}

 In this case you will not have problems.

 In any case, it is already
 [http://docs.fckeditor.net/FCKeditor_3.x/Design_and_Architecture/Native_Objects
 part of our plans] to avoid touching native objects.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/940#comment:1>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to