We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce10698 commit 09b6727Copy full SHA for 09b6727
javascript/ql/src/semmle/javascript/DOM.qll
@@ -307,12 +307,8 @@ module DOM {
307
)
308
or
309
// A `this` node from a callback given to a `$().each(callback)` call.
310
- exists(DataFlow::MethodCallNode eachCall |
311
- eachCall.getMethodName() = "each" and
312
- eachCall.getReceiver().getALocalSource() = JQuery::objectRef() // purposely not using JQuery::MethodCall to avoid `jquery.each()`.
313
- |
314
- this = DataFlow::thisNode(eachCall.getCallback(0).getFunction())
315
- )
+ // purposely not using JQuery::MethodCall to avoid `jquery.each()`.
+ this = DataFlow::thisNode(JQuery::objectRef().getAMethodCall("each").getCallback(0).getFunction())
316
}
317
318
0 commit comments