Ticket #611 (closed defect: fixed)
ShrinkSafe breaks prototype.js
| Reported by: | KemenAran | Owned by: | alex |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.9 |
| Component: | BuildTools | Version: | 0.2 |
| Severity: | normal | Keywords: | ShrinkSafe, prototype |
| Cc: |
Description
ShrinkSafe? breaks prototype.js v1.5.0_pre1. In two functions, the first parameter of the function hasn't the same name in the function declaration and in the function body.
Location of the problems :
First compress prototype.js v1.5.0_pre1, without stripping newlines. Then go to the line 1326-1327, which should read :
},observe:function(_161,name,_163,_164){
var _165=$(_165);
The original source code is :
observe: function(element, name, observer, useCapture) {
var element = $(element);
Thus var _165=$(_165); should be var _161=$(_161); - actually vars _161 and _165 are duplicated.
The same problem occurs at lines 1333-1334. The compression seems to work elsewhere.
Change History
Note: See
TracTickets for help on using
tickets.