0

I am using vim with syntastic on a javascript (cordova) project, but I am getting a lot of warnings as can be seen below:

enter image description here

I consider to be a javascript noob, so I'm a little concerned that my code is not to a good standard.

How can I fix these warnings?

Chris Snow
  • 23,813
  • 35
  • 144
  • 309

1 Answers1

1

For me, the solution was to add the following as a header:

/* global SettingsManager, $  */  

I.e.

/* global SettingsManager, $  */

(function() {
    "use strict";

    var settingsManager = SettingsManager.getInstance();

    $(document).on("pageinit", "#budgetSummaryList", function(e) {
    ...
Chris Snow
  • 23,813
  • 35
  • 144
  • 309