Thread Previous • Date Previous • Date Next • Thread Next |
On 2011-03-14 17:56, Gavin Panella wrote:
Although I think launchpad.js is correct, it is minified in a different manner now. I think that a direct comparison of file contents is not particularly feasible, though I'd be happy to be wrong.
Don't know if it makes any sense, but have you considered running the JS through Google's Caja and comparing the output you get for the old JS and the new JS?
Caja is basically a JS-to-JS compiler, so it normalizes out variable names and other such superficial differences. Normally you'd use it as a very aggressive optimizing minifier, but I imagine it could work as a way of eliminating minifier differences as well.
Just two caveats:1. It's a jar download. I have a script somewhere to download and manage it.
2. Aggressive mode eliminates any entry points to the code that haven't been exported into the window object. So may have to add a bit of that.
Jereon
Thread Previous • Date Previous • Date Next • Thread Next |