@@ -37,19 +37,19 @@ private class OrdinaryJQueryObject extends JQueryObjectInternal {
37
37
OrdinaryJQueryObject ( ) {
38
38
exists ( JQuery:: MethodCall jq |
39
39
this .flow ( ) .getALocalSource ( ) = jq and
40
- returnsAJqueryObject ( jq , jq .getMethodName ( ) )
40
+ returnsAJQueryObject ( jq , jq .getMethodName ( ) )
41
41
)
42
42
}
43
43
}
44
44
45
45
/**
46
46
* Holds if the jQuery method call `call`, with name `methodName`, returns a JQuery object.
47
- *
48
- * The `call` parameter has type `DataFlow::CallNode` instead of `JQuery::MethodCall` to avoid non-monotonic recursion.
49
- * The not is placed inside the predicate to avoid non-monotonic recursion.
47
+ *
48
+ * The `call` parameter has type `DataFlow::CallNode` instead of `JQuery::MethodCall` to avoid non-monotonic recursion.
49
+ * The not is placed inside the predicate to avoid non-monotonic recursion.
50
50
*/
51
51
bindingset [ methodName, call]
52
- private predicate returnsAJqueryObject ( DataFlow:: CallNode call , string methodName ) {
52
+ private predicate returnsAJQueryObject ( DataFlow:: CallNode call , string methodName ) {
53
53
not (
54
54
methodName = "val" // `jQuery.val()`
55
55
or
@@ -70,7 +70,7 @@ private predicate returnsAJqueryObject(DataFlow::CallNode call, string methodNam
70
70
or
71
71
methodName = "trim" // $.trim()
72
72
or
73
- // `$.ajax`, and related methods.
73
+ // `$.ajax`, and related methods.
74
74
// note: there are 2 different `get` methods, and none of them return a jQuery object.
75
75
methodName = [ "ajax" , "get" , "getJSON" , "getScript" , "post" , "load" ]
76
76
)
0 commit comments