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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working in IE #9

Open
MinChanSike opened this issue Sep 17, 2018 · 2 comments
Open

Not working in IE #9

MinChanSike opened this issue Sep 17, 2018 · 2 comments

Comments

@MinChanSike
Copy link

Exception on stupid IE
SCRIPT1004: Expected ';' at

for (var n of ["success", "info", "warning", "error"]) s[n] = function (e) {
        return s(t({
            type: n
        }, e));
    }; 

I don't know how to solve 馃樄

@k-ivan
Copy link

k-ivan commented Sep 18, 2018

Hi @MinChanSike , the code uses a for of loop, which is not supported in IE.
You need a polyfill, or you have to rewrite the loop to a for or forEach.

@egoist
Copy link
Owner

egoist commented Sep 19, 2018

hmm didn't notice that, will fix it later.

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

3 participants