I have the following code:
var $form = $modal.find('#main-form');
var $submitBt = $modal.find('.block-footer button:contains("Submit")');
var oSubmit = {
$form: $form,
$modal: $modal,
action: $form.attr('data-action'),
entity: $form.attr('data-entity'),
href: $form.attr('data-href'),
row: $link.attr('data-row'),
$row: $('#row_' + $link.attr('data-row')),
$submitBt: $submitBt
};
When I used jslint it told me three things:
- Missing
'use strict'
statement. - Combine this with the previous 'var' statement.
<-
many of these $row: $('#row_' + $link.attr('data-row'))
- error: '$' was used before it was defined.
Can someone give me some advice on what's normal practice with these messages.