Doesn't work in IE8 #68

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

Projects

None yet

2 participants

@ebeigarts

String.prototype.trim is undefined

@ebeigarts

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

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

#trim is used here

@netzpirat
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.

@netzpirat netzpirat closed this Sep 3, 2012
@ebeigarts

Thank you :)

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