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

Add checking for Function.prototype.bind() exists #34

Open
DeadByElpy opened this issue Feb 17, 2015 · 1 comment
Open

Add checking for Function.prototype.bind() exists #34

DeadByElpy opened this issue Feb 17, 2015 · 1 comment

Comments

@DeadByElpy
Copy link

Hi.

I work with browsers that are so old that they don't have 'bind' function (Function.prototype.bind() ) and this line (src/livereload.coffee:20) causes an error, which crash all livereload.
Can you add check to the 'bind' function existence?

Somethin like that:

error: this.window.console.error.bind ? this.window.console.error.bind(this.window.console) : function() {}

I hope that you can add this small checking ;)

@DeadByElpy DeadByElpy changed the title Add check for function window.console.error.bind Add checking for Function.prototype.bind() exists Feb 17, 2015
@ahx
Copy link

ahx commented Feb 18, 2015

Same problem here, using phantomjs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants