On 30/09/10 08:27, Trevor Parscal wrote:
There seems to be some confusion about how
ResourceLoader works, which
has been leading people to make commits like r73196 and report bugs like
#25362. I would like to offer some clarification.
I made that change because it was requested by multiple people in
discussions before the resource loader was implemented. It's not
because I actually had any actual problem with debugging, I'm well
aware of the existence of the debug mode.
Concerns were raised that it may be necessary to interpret minified
code in cases such as:
* Where it is suspected that, due to caching issues, the debug code
may not be the same as the minified code.
* To debug the minifier itself, which is far short of a full
JavaScript parser and may well introduce functional differences.
* Where end users report platform-specific JavaScript errors, it may
be useful to be able to match the line number of the error with
something meaningful.
Since the cost of adding line breaks is fairly small, the contention
was that it was a fair compromise between size and developer (and tech
supporter) sanity. So I took those comments on board and implemented
it shortly after the branch merge.
-- Tim Starling