mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
5ce40aab7f
commit
fc551f5e0c
2
thirdparty/behaviour/behaviour.js
vendored
2
thirdparty/behaviour/behaviour.js
vendored
@ -371,7 +371,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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user