Closed brunob closed 9 years ago
Any news about this @lemonmade ?
Sorry for never replying to this. This issue is in the dist version of the script, which is compiled automatically from the CoffeeScript source. Since I have no control over that compilation, I lean towards not making any changes for this.
Thx for anwsering :) Sad that this can't be fixed, maybe we need to open a issue on CoffeeScript side ?
Can you see if the most recent version in this repo fixes the issue? I went to single quotes inside double quoted strings, which I think should resolve the minifier warnings.
(y) well done @lemonmade :)
Hi @lemonmade here is a fix to avoid error when unminified version of the script is minified with an external tool :
https://github.com/lemonmade/bigfoot/blob/master/dist/bigfoot.js#L32
footnoteButtonSearchQuery = settings.scope ? "" + settings.scope + " a[href*=\"#\"]" : "a[href*=\"#\"]";
should be replaced with :
footnoteButtonSearchQuery = settings.scope ? '' + settings.scope + ' a[href*="#"]' : 'a[href*="#"]';
(like it's done in min version of the script)