Closed arlolra closed 12 years ago
For some odd reason, IE8 isn't happy with this: https://github.com/visionmedia/express-expose/blob/master/lib/express-expose.js#L218
var test = test || {}; causes a problem. I'm guessing it has something to do with hoisting replacing the global variable.
var test = test || {};
In any case, swapping this,
return (i ? '' : 'var ') + part + ' = ' + part + ' || {};';
with this,
return (i ? '' : 'window.') + part + ' = window.' + part + ' || {};';
gets around the problem. Not sure you want to do that, just thought I'd point it out.
crap yeah that's a bug on my part
want me to turn it into a pull request?
sure! that would be great
For some odd reason, IE8 isn't happy with this: https://github.com/visionmedia/express-expose/blob/master/lib/express-expose.js#L218
var test = test || {};
causes a problem. I'm guessing it has something to do with hoisting replacing the global variable.In any case, swapping this,
with this,
gets around the problem. Not sure you want to do that, just thought I'd point it out.