#1236: Unquoted keys in JavaScript objects got compressed by FCKpackager
------------------------------------+---------------------------------------
  Reporter:  martinkou              |       Owner:           
      Type:  Bug                    |      Status:  new      
  Priority:  Normal                 |   Milestone:           
 Component:  Project : FCKpackager  |     Version:           
Resolution:                         |    Keywords:  Confirmed
------------------------------------+---------------------------------------
Changes (by fredck):

  * keywords:  Pending WorksForMe => Confirmed


Comment:

 The test case must be inside a function to see the problem:

 {{{
 function()
 {
         var key1 = "hack";
         var key2 = "and";
         var key3 = "slash";
         var key4 = "rpg";
         var obj = {key1: 'hack', key2: 'and', key3: 'slash', key4: 'rpg'};
         alert( [obj.key1, obj.key2, obj.key3, obj.key4].join(' ')) ;
 }
 }}}

 Results:

 {{{
 function(){var A="hack";var B="and";var C="slash";var D="rpg";var
 
E={A:'hack',B:'and',C:'slash',D:'rpg'};alert([E.key1,E.key2,E.key3,E.key4].join('
 '));}
 }}}

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/1236#comment:3>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to