BUGFIX: Fixed bug in r99552 (from r99613)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102871 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-04-14 04:42:45 +00:00
parent 5ce40aab7f
commit fc551f5e0c
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ document.getElementsBySelector = function(selector, parentNode) {
// currentContext limitation: for "body.class #Something" selectors.
var foundInContext = false;
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;
}
}