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

Doesn't work in IE8 #68

Closed
ebeigarts opened this issue Sep 2, 2012 · 4 comments
Closed

Doesn't work in IE8 #68

ebeigarts opened this issue Sep 2, 2012 · 4 comments

Comments

@ebeigarts
Copy link

String.prototype.trim is undefined

@ebeigarts
Copy link
Author

My current workaround is adding this to my application.coffee:

if !String.prototype.trim
  String.prototype.trim = ->
    @replace(/^\s*/, "").replace(/\s*$/, "")

@ebeigarts
Copy link
Author

#trim is used here

@netzpirat
Copy link
Collaborator

Thanks for reporting. I've replaced trim() with a RegExp and version 1.4.7 is released that contains the latest haml-coffee version.

@ebeigarts
Copy link
Author

Thank you :)

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

2 participants