jQuery $ > Using a variable (property or object) without declaring it is not allowed in 'strict mode'

using R# 2018.1 I get this warning "Using a variable (property or object) without declaring it is not allowed in 'strict mode'" using this code:

<script type="text/javascript">

"use strict";

$(function() {
$("#UserName").focus();
});

</script>

following this suggestion https://stackoverflow.com/questions/7604419/resharper-javascript-use-of-implicitly-declared-global-variable-x one warning is eliminated and another added. Please see screenshot.

 

 

 

1
2 comments

This is very annoying, and the fact that it hasn't been solved in over two years doubly so :(

0

Hello,

 

Please accept my apologies for the delay in responding to this forum thread.

I've filed a correspondent bug report - https://youtrack.jetbrains.com/issue/RSRP-483318.

You are welcome to comment or vote for it.

Thank you.

0

Please sign in to leave a comment.