script.js icon indicating copy to clipboard operation
script.js copied to clipboard

Ensure "done" callback is invoked if zero-length paths array is provided

Open revetkn opened this issue 10 years ago • 1 comments

It is uncommon but possible for script.js to be invoked with [] paths. Current behavior is to never fire the "done" callback, this fix ensures it's called immediately and skips the setTimeout.

Github's diff is a bit misleading - it shows mostly whitespace. I've only added a one-line if statement.

revetkn avatar Mar 08 '14 23:03 revetkn

interesting, i'll have a stab at getting this in one way or another

ded avatar Apr 20 '14 00:04 ded