Opened 10 years ago

Closed 6 years ago

#5436 closed defect (wontfix)

ShrinkSafe appears to not handle '$super' in this code

Reported by: guest Owned by: Richard Backhouse
Priority: high Milestone: future
Component: ShrinkSafe Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Adam Peller)

Sorry, I'm not a javascript expert. But I wanted to use Prototype ( to do some Ajax in my web application. The uncompressed version seems to work fine, but the compressed version gives error "_13a is not a function" for line:

_13a(_13d); // <<< error here

The uncompressed version is:

Ajax.PeriodicalUpdater = Class.create(Ajax.Base, {
  initialize: function($super, container, url, options) {
    this.onComplete = this.options.onComplete;


Change History (8)

comment:1 Changed 10 years ago by Adam Peller

Component: GeneralShrinkSafe
Description: modified (diff)
Owner: changed from anonymous to alex

comment:2 Changed 10 years ago by Adam Peller

might need a complete example to see what's going on here (please use attach file)

comment:3 Changed 10 years ago by dylan

Milestone: 1.3

comment:4 Changed 10 years ago by guest

you can find more info at

comment:5 Changed 10 years ago by Adam Peller

Description: modified (diff)

thanks for the ref... has nothing to do with the snippets, per se. Our options? We could 'whitelist' variables starting with "$" from shrinksafe, provide some other whitelist mechanism, either one is pretty fragile or just say that we don't support this scenario; it's a slippery slope once you start depending on variable names.

comment:6 Changed 9 years ago by bill

Milestone: 1.3future

comment:7 Changed 8 years ago by Adam Peller

Owner: changed from alex to Richard Backhouse

comment:8 Changed 6 years ago by ben hockey

Resolution: wontfix
Status: newclosed

I'm going to go with "we don't support this scenario"

Note: See TracTickets for help on using tickets.