Closed adzap closed 8 years ago
Well that's terrifying. I'm debugging this this morning.
Here's a reproduction JSFiddle: https://jsfiddle.net/jwadhams/1fwv8koa/1/
Can you take a look at version 1.0.6?
The root of the problem appears to be that I used a fancy for...in statement to iterate over the arguments to or
and and
Moving to an old fashioned for(var i=0 ; i < arguments.length ; i+=1)
loop cleared up the issue for me.
Excellent, that seems to have done the trick. Thanks very much.
Thanks a lot for this lib too.
You're very welcome. Thanks for the bug report, that definitely would have bitten me when my product got out into the hands of the wider public!
Been using the lib nicely in IE and Chrome but found a serious bug in Safari (v9.1.1).
Change 0 to a 1 returns false. Truthy logic can overcome this issue.
But the real issue is the 'or' operator
Difficult to trace this given the recursion. Any clues?