I think the problem is the .bind(this).  You aren’t referencing ‘this’ in the function, what are you binding?  I’d say drop it and see if it fixes it.

 

Greg

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marco M. Jaeger
Sent: Wednesday, May 24, 2006 5:42 AM
To: [email protected]
Subject: [Rails-spinoffs] enumerables problem?

 

 

I was wondering whether anybody could please tell me why this is causing an error in IE (works in Firefox):

 

$A(container.getElementsByTagName('*')).each( function(el) {
    Element.cleanWhitespace(el); 
   }.bind(this));

 

What would be an alternative of achieving the same?

 

Thank you

 

Marco M. Jaeger | Url: http://mmjaeger.com | E-mail: [EMAIL PROTECTED]
Do you need business consulting, webdesign or webhosting: please visit http://j-cons.com or please contact me at [EMAIL PROTECTED].

 

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to