From 9a1c00d2dc9229166cc85cc1806017caf1ad1c81 Mon Sep 17 00:00:00 2001 From: jdalton Date: Wed, 1 Apr 2015 21:42:57 -0700 Subject: [PATCH] Use `x` a bit more in `support` definition to prevent aggressive minifier modifications. --- lodash.src.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lodash.src.js b/lodash.src.js index 626012cb9..0be79a8c0 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -1000,11 +1000,11 @@ var support = lodash.support = {}; (function(x) { - var Ctor = function() { this.x = 1; }, - object = { '0': 1, 'length': 1 }, + var Ctor = function() { this.x = x; }, + object = { '0': !x, 'length': 1 }, props = []; - Ctor.prototype = { 'valueOf': 1, 'y': 1 }; + Ctor.prototype = { 'valueOf': x, 'y': x }; for (var key in new Ctor) { props.push(key); } /**