-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Stop safari from blowing up #177
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
Conversation
pace.coffee
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Friss I'm a bit confused here. val in from compiles to from.indexOf(val) >= 0. But from is an object like window.WebSocket, which doesn't have an indexOf method... right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to try using Object.defineProperty (if the browser supports it). Other projects have used to avoid this error: apache/cordova-js@6c7a76f
|
Updated @TrevorBurnham seems to be working as expected now. |
pace.coffee
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you still want to use to[key] = val in browsers where Object.defineProperty is not defined.
|
How does this look @TrevorBurnham |
|
👍 |
Stop safari from blowing up
|
Tagged as v1.0.2. |

Fixes #138 and #173
@zackbloom @TrevorBurnham @marcneuwirth