The following is no good in IE

Element.prototype.childWithClass = function(klass) {
   [ . . . ]
}


I got it to work by replacing with this:

Element.Methods.childWithClass = function(el, klass) {
    var ret=null;
    el.childElements().each(function(el2) {
        if(ret==null && el2.hasClassName(klass)) ret=el2;
    });
    return ret;
}


On Jan 8, 1:53 pm, Bryan M <[email protected]> wrote:
> Thanks, Bryan!
>
> Now that I've got the page at least loading right in IE7, I've run
> into some other problems with hobo-rapid.js that I think might be
> related to the issue discussed inhttp://www.prototypejs.org/learn/extensions
> .  I get "Object doesn't support this property or method" on stuff
> like this:
>
> li.childWithClass("buttons").childWithClass("add-item").addClassName
> ("hidden");
>
> On Jan 8, 10:18 am, Bryan Larsen <[email protected]> wrote:
>
> > Git tells me I broke it on December 10th.  Thanks for pointing that
> > out, I'll push a fix.
>
> > thanks,
> > Bryan
>
> > On Jan 8, 12:15 pm, Bryan M <[email protected]> wrote:
>
> > > /hobo/rails_generators/hobo_rapid/templates/hobo-rapid.js
> > > Line 715 has an extraneous comma that breaks pages in ie7
>
> > > Can somebody please fix this?
-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.


Reply via email to