public/lookbook-assets/js/iframe.js in lookbook-2.0.0.beta.4 vs public/lookbook-assets/js/iframe.js in lookbook-2.0.0.beta.5

- old
+ new

@@ -33,10 +33,11 @@ }, eventHandlersByName = {}, passiveSupported = false; function noop() {} try { var options = Object.create({}, { passive: { + // eslint-disable-next-line getter-return get: function() { passiveSupported = true; } } }); @@ -128,10 +129,10 @@ bodyPadding = data[10]; tolerance = undefined === data[11] ? tolerance : Number(data[11]); inPageLinks.enable = undefined === data[12] ? false : strBool(data[12]); resizeFrom = undefined === data[13] ? resizeFrom : data[13]; widthCalcMode = undefined === data[14] ? widthCalcMode : data[14]; - mouseEvents = undefined === data[15] ? mouseEvents : Boolean(data[15]); + mouseEvents = undefined === data[15] ? mouseEvents : strBool(data[15]); } function depricate(key) { var splitName = key.split("Callback"); if (splitName.length === 2) { var name = "on" + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1);