Skip to content
Browse files

- fixed #989, where non extended children couldn't get an element by…

… id.

git-svn-id: http://svn.mootools.net/trunk@1550 4db308c1-fb21-0410-9919-de62e267375e
  • Loading branch information...
1 parent 3f6b66a commit c094ffe8cf2842182fd75a62f468b8a14dd6a68c kamicane committed with subtleGradient May 12, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Utilities/Selectors.js
View
2 Source/Utilities/Selectors.js
@@ -135,7 +135,7 @@ Selectors.Utils = {
getByTagAndID: function(ctx, tag, id){
if (id){
- var item = ctx.getElementById(id, true);
+ var item = (ctx.getElementById) ? ctx.getElementById(id, true) : Element.getElementById(ctx, id, true);
return (item && Selectors.Filters.byTag(item, tag)) ? [item] : [];
} else {
return ctx.getElementsByTagName(tag);

0 comments on commit c094ffe

Please sign in to comment.
Something went wrong with that request. Please try again.