mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
update consistency comments in unsafe-jquery-plugin.js
Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
This commit is contained in:
committed by
GitHub
parent
c986f3bb7c
commit
2a8b37e004
@@ -152,8 +152,8 @@
|
|||||||
|
|
||||||
$.fn.my_plugin = function my_plugin(options) {
|
$.fn.my_plugin = function my_plugin(options) {
|
||||||
let target = options.target;
|
let target = options.target;
|
||||||
target === DEFAULTS.target? $(target): $(document).find(target); // NOT OK - but not flagged [INCONSISTENCY]
|
target === DEFAULTS.target? $(target): $(document).find(target); // OK
|
||||||
options.target === DEFAULTS.target? $(options.target): $(document).find(options.target); // NOT OK - but not flagged [INCONSISTENCY]
|
options.target === DEFAULTS.target? $(options.target): $(document).find(options.target); // OK
|
||||||
options.targets.a === DEFAULTS.target? $(options.target.a): $(document).find(options.target.a); // OK - but still flagged [INCONSISTENCY]
|
options.targets.a === DEFAULTS.target? $(options.target.a): $(document).find(options.target.a); // OK - but still flagged [INCONSISTENCY]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user