PackR won’t touch your $supers
Another quick update: PackR received an update today that means that when you use its :shrink_vars mode, it won’t minify any variables called $super. In Prototype, $super is used to implement inheritance and your class definitions will break if you change its name.
I didn’t really want to make PackR inconsistent with Dean’s original, but without this feature Prototype code is essentially unpackable beyond basic whitespace-stripping, and given that Ruby/Rails users are likely to be using Prototype, I figured it was worth the addition. It also lets you specify your own protected variable names — I’ll be updating the docs soon.
To update, just gem install packr or
ruby script/plugin install
http://svn.jcoglan.com/packr/trunk/packr
About this entry
You’re currently reading “PackR won’t touch your $supers,” an entry on The If Works
- Published:
- 12.13.07 / 9pm
- Category:
- JavaScript, PackR, Prototype, Rails, Ruby
- Tags:
1 Comment
Jump to comment form | comments rss [?] | trackback uri [?]