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

Sockjs 1.03 not running on IE8/IE7 browsers since apply method missing #279

Merged
merged 3 commits into from
Jan 5, 2016

Conversation

syberkitten
Copy link
Contributor

added fix for old browsers such as IE7/8 were console.log
does not have an apply function.
using try catch we are take care that everything works.
tested on IE8/IE7 via Edge (IE11).

Fixes #276

does not have an apply function.
using try catch we are take care that everything works.
tested on IE8.
@syberkitten
Copy link
Contributor Author

I'm still having issues with IE8 in certain cases, but this was an error that prevented anything from running.

@brycekahle
Copy link
Contributor

Interesting that IE8 throws an error. This exact code is meant to detect if apply exists or not.

@brycekahle
Copy link
Contributor

What was the error that was thrown? Can you also fix the indentation?

@syberkitten
Copy link
Contributor Author

The error that I was getting is: "Object doesn't support this action"
to reproduce, open IE11, open console, change to Edge emulation to IE 8.
write in console log:
console.log.apply

In IE8 and earlier, if a property does not exist an exception is thrown
rather the yielding back 'undefined'

@brycekahle
Copy link
Contributor

Ok. It looks like you changed to either 4 space indentation or tabs. It should be 2 space indentation. Sorry to be so picky.

@syberkitten
Copy link
Contributor Author

lol, got it :)

brycekahle added a commit that referenced this pull request Jan 5, 2016
Sockjs 1.03 not running on IE8/IE7 browsers since apply method missing
@brycekahle brycekahle merged commit d131684 into sockjs:master Jan 5, 2016
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

Successfully merging this pull request may close these issues.

BUGFIX IE 11 Emulated to 8
2 participants