Ticket #1242 (closed Bug: fixed)
Comments are not always stripped when compressing
| Reported by: | fredck | Owned by: | fredck |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | Project : FCKpackager | Version: | |
| Keywords: | Confirmed Review+ | Cc: |
Description
The following input:
if ( /*is.ns5 &&*/ subDivs[idx].className=='DLG_edittext' && subDivs[idx].style.width ) // fix firefox bug
button152.enable(bMode&&bEdit/*TODO &&theApp.clipboard.canPaste(theApp.clipboard.titleData.title.arChld[0])*/); //
var testFunc = function(tempNode) {
var fs = tempNode.style.fontSize;
fs = parseInt(fs); //.substr(0,fs.length-2); // remove px
fs = Math.round( fs / 1.3333 ) + "pt"; // convert to points
var bs = fs * 2;
return bs
}
Outputs like this:
if (/*is.ns5&&*/ subDivs[idx].className=='DLG_edittext' && subDivs[idx].style.width ) //fix firefox bug button152.enable(bMode&&bEdit/*TODO&&theApp.clipboard.canPaste(theApp.clipboard.titleData.title.arChld[0])*/); //var testFunc=function(A) {var B=A.style.fontSize;B=parseInt(B);B=Math.round(B / 1.3333 ) + "pt"; //convert to points var C=B*2;return C};
The comments have not been stripped out, breaking the code in some cases.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.