Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: assignment to undeclared variable BCa #140

Closed
ahorek opened this issue Jul 9, 2018 · 2 comments
Closed

ReferenceError: assignment to undeclared variable BCa #140

ahorek opened this issue Jul 9, 2018 · 2 comments

Comments

@ahorek
Copy link

ahorek commented Jul 9, 2018

source: https://github.com/c3js/c3/blob/v0.4.15/c3.js

    axis.tickValues = function (x) {
        if (typeof x === 'function') {
            tickValues = function tickValues() {
                return x(scale.domain());
            };
        } else {
            if (!arguments.length) {
                return tickValues;
            }
            tickValues = x;
        }
        return axis;
    };
    return axis;

4.1.12 (and previous versions are fine)

j.tickValues=function(t){if("function"==typeof t)$=function(){return t(q.domain())};else{if(!arguments.length)return $;$=t}return j},j}

4.1.13 & 4.1.14

 j.tickValues=function(t){if("function"==typeof t)BCa=function(){return t(q.domain())};else{if(!arguments.length)return BCa;BCa=t}return j},j}
@ahorek
Copy link
Author

ahorek commented Jul 10, 2018

I can confirm it's already fixed in UglifyJS 3.4.4 ( mishoo/UglifyJS#3207 ), @lautis could you upgrade and release 4.1.15? thanks

@lautis
Copy link
Owner

lautis commented Jul 13, 2018

Thanks for the investigation! Released 4.1.15 with UglifyJS 3.4.4.

@lautis lautis closed this as completed Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants