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

Problem with unput in IE #3

Open
judofyr opened this issue Mar 10, 2013 · 0 comments
Open

Problem with unput in IE #3

judofyr opened this issue Mar 10, 2013 · 0 comments

Comments

@judofyr
Copy link

judofyr commented Mar 10, 2013

I'm having problems using unput("\n") in IE:

unput: function (ch) {

The problem seems to be that the following line returns different values in IE and Chrome:

var lines = "\n".split(/(?:\r\n?|\n)/g);
// Chrome: lines == ["", ""]
// IE9: lines == []

This means that lines[0] on the line below fails.

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

1 participant