MDL-60493 mod_assign: Unused JS variables
authorLeon Stringer <leon.stringer@ntlworld.com>
Tue, 28 Jul 2020 11:04:03 +0000 (12:04 +0100)
committerLeon Stringer <leon.stringer@ntlworld.com>
Tue, 28 Jul 2020 11:04:03 +0000 (12:04 +0100)
Removed unused JavaScript variables fixing CI warning "ESLint error
[no-unused-vars]".

mod/assign/templates/grading_navigation.mustache

index 17a37d3..207533e 100644 (file)
@@ -96,7 +96,7 @@
 </div>
 {{#js}}
 require(['mod_assign/grading_navigation', 'core/tooltip'], function(GradingNavigation, ToolTip) {
-    var nav = new GradingNavigation('[data-region="user-selector"]');
-    var tooltip = new ToolTip('[data-region="assignment-tooltip"]');
+    new GradingNavigation('[data-region="user-selector"]');
+    new ToolTip('[data-region="assignment-tooltip"]');
 });
 {{/js}}