Ticket #1343 (closed Bug: fixed)

Opened 14 months ago

Last modified 4 months ago

Support for conditional compilation comments

Reported by: fredck Owned by: fredck
Priority: Normal Milestone:
Component: Project : FCKpackager Version:
Keywords: Confirmed Review+ Cc:

Description

Conditional compilation comments must not be removed from the script while compressing. For example, the following code is completely removed today:

/*@cc_on
   @if (@_win32)
      document.write("OS is 32-bit. Browser is IE.");
   @else
      document.write("OS is NOT 32-bit. Browser is IE.");
   @end
@*/

This page has more information about the Conditional Compilation syntax.

Attachments

1343.patch (0.7 KB) - added by fredck 5 months ago.

Change History

Changed 9 months ago by w.olchawa

  • keywords Confirmed added

Changed 5 months ago by fredck

Changed 5 months ago by fredck

  • keywords Review? added

Changed 5 months ago by fredck

  • owner set to fredck
  • status changed from new to assigned

The proposed fix simply leaves conditional comments untouched.

Changed 4 months ago by martinkou

  • keywords Review+ added; Review? removed

Changed 4 months ago by fredck

  • status changed from assigned to closed
  • resolution set to fixed

Fixed with [2237].

Note: See TracTickets for help on using tickets.