ARTICLE AD BOX
So my coworker claims that we need to stop using System.Web.Optimization.Scriptbundle() everywhere because it is changing the contents of the JavaScript.
He has the following code which works locally:
if (0 < trueResults.length) { $.each(trueResults, function (i, r) { me.notification.show( r.Message, "warning"); }); } if (buttonId === me.map.saveAndCloseButtonHtmlId) { me.modal.modal("hide"); } else { ajaxRequestPool.abort(); me.destroyEventListeners(); me.modalContent.html(json.Html); }that becomes minified to:
if(0 < s.length && $.each(s, function(n, i) { t.notification.show(i.Message, "warning") }), n === t.map.saveAndCloseButtonHtmlId ? t.modal.modal("hide") : (ajaxRequestPool.abort(), t.destroyEventListeners(), t.modalContent.html(u.Html))When run minified on the server, the t.notification.show() line runs when doing the same steps in the application that does NOT cause the me.notification.show when running locally through Visual Studio.
I don't know enough about JS to say for sure, but from what I can tell that code looks identical? Is there really a bug in System.Web.Optimization.ScriptBundle that causes contents of the JS to change?
We're using Assembly System.Web.Optimization, Version=1.1.0.0, if that's relevant.
