Element.prototype.childWithClass= fails in IE7
Reported by Bryan Larsen | January 16th, 2010 @ 08:46 PM
Bryan M wrote
The following is no good in IE7
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;
}
Comments and changes to this ticket
-
Bryan Larsen January 16th, 2010 @ 09:52 PM
- State changed from new to resolved
(from [ee2511c5d2ee95d0a15584a4d9a5e8f5d37f0ebf]) [#606 state:resolved] IE7 fixup from Bryan M http://github.com/tablatom/hobo/commit/ee2511c5d2ee95d0a15584a4d9a5...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Referenced by
- 606 Element.prototype.childWithClass= fails in IE7 (from [ee2511c5d2ee95d0a15584a4d9a5e8f5d37f0ebf]) [#606 s...