aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2016-04-23 20:30:00 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2016-04-23 20:30:00 +0200
commitfa610da68440530e73bba296a1f982f94dfeac99 (patch)
tree1b3daf82ca6df08f6b3f7d012c43cbc81ceb6510
parentaa0ebad86b13be721fe00f65fa29f9d4fb216ed7 (diff)
downloadjquery-fa610da68440530e73bba296a1f982f94dfeac99.tar.gz
jquery-fa610da68440530e73bba296a1f982f94dfeac99.zip
Build: Workaround strict mode violations caused by UglifyJS
This commit increases the gzipped size by 90 bytes so a better solution is needed but, at the same time, it disables the very optimizations that are causing strict mode violations in Firefox 45, Safari 9 & IE 10. Refs 76084372c29a59b3fa790ea4d2687f0767514999 Refs mishoo/UglifyJS2#1052
-rw-r--r--Gruntfile.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index c979f2822..04ccb7c3f 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -186,6 +186,7 @@ module.exports = function( grunt ) {
banner: "/*! jQuery v<%= pkg.version %> | " +
"(c) jQuery Foundation | jquery.org/license */",
compress: {
+ "if_return": false,
"hoist_funs": false,
loops: false,
unused: false