mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
refactor $.each model
This commit is contained in:
@@ -307,12 +307,8 @@ module DOM {
|
||||
)
|
||||
or
|
||||
// A `this` node from a callback given to a `$().each(callback)` call.
|
||||
exists(DataFlow::MethodCallNode eachCall |
|
||||
eachCall.getMethodName() = "each" and
|
||||
eachCall.getReceiver().getALocalSource() = JQuery::objectRef() // purposely not using JQuery::MethodCall to avoid `jquery.each()`.
|
||||
|
|
||||
this = DataFlow::thisNode(eachCall.getCallback(0).getFunction())
|
||||
)
|
||||
// purposely not using JQuery::MethodCall to avoid `jquery.each()`.
|
||||
this = DataFlow::thisNode(JQuery::objectRef().getAMethodCall("each").getCallback(0).getFunction())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user