Closed evilfer closed 7 years ago
I can confirm that after applying this patch I was able to revert back to { mangle: true } in my uglify step and have it working correctly in IE8. However, still resisting to use unreleased non-upstream version of refluxjs in production.
My concern is that this will set a precedent that we will write code in a way that supports IE8. My gut check says that we should be able to use anonymous functions without thinking about IE8 and uglification.
Hi devinivy,
I share your concern, as I mentioned I do think this is an ugly workaround. The only argument in favor for it is that this is rather special case. This is the only case I've seen an anonymous function causing problems with IE8, and it must be related to the fact that it's a functor using itself...
I haven't been able to find any alternative :S. Perhaps
var functor = function F () {
is a bit more elegant and, to some extend, useful not only for IE8 to emphasize that it's not just an anonymous function.
reflux-core is not stated to support IE8.
By giving a name to a previously anonymous function, /lib/createAction.js can be minifized safely for ie8.
More info: https://github.com/reflux/reflux-core/issues/16