BUGFIX: Fixed bug in r99552

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99613 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-02-22 21:54:24 +00:00
parent 3643205d8e
commit ed7b0c4a8c

View File

@ -367,7 +367,7 @@ document.getElementsBySelector = function(selector, parentNode) {
// currentContext limitation: for "body.class #Something" selectors. // currentContext limitation: for "body.class #Something" selectors.
var foundInContext = false; var foundInContext = false;
for (var h = 0; h < currentContext.length; h++) { for (var h = 0; h < currentContext.length; h++) {
if(currentContext[i] == document || hasAncestor(element, currentContext[i])) { if(currentContext[h] == document || hasAncestor(element, currentContext[h])) {
foundInContext = true; foundInContext = true;
} }
} }