Skip to content

Commit

Permalink
Minor code adjustments to avoid JSHint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
arteconceito committed Jul 14, 2020
1 parent 1bb0e01 commit 5f93160
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions spec/toolbar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -735,11 +735,11 @@ describe('MediumEditor.extensions.toolbar TestCase', function () {
window.document.body.appendChild(relativeContainer);

var editor = this.newMediumEditor('.editor', {
toolbar: {
relativeContainer: document.getElementById('someRelativeDiv')
}
}),
toolbarHTML = editor.getExtensionByName('toolbar').getToolbarElement().outerHTML;
toolbar: {
relativeContainer: document.getElementById('someRelativeDiv')
}
}),
toolbarHTML = editor.getExtensionByName('toolbar').getToolbarElement().outerHTML;

expect(document.getElementById('someRelativeDiv').innerHTML).toBe(toolbarHTML);
});
Expand Down
4 changes: 2 additions & 2 deletions src/js/core.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
(function () {
'use strict';

var initialContent = {};

// Event handlers that shouldn't be exposed externally

function handleDisableExtraSpaces(event) {
Expand Down Expand Up @@ -684,8 +686,6 @@
}
}

var initialContent = {};

MediumEditor.prototype = {
// NOT DOCUMENTED - exposed for backwards compatability
init: function (elements, options) {
Expand Down
2 changes: 1 addition & 1 deletion src/js/extensions/paste.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
};

/*jslint regexp: true*/
/*
/**
jslint does not allow character negation, because the negation
will not match any unicode characters. In the regexes in this
block, negation is used specifically to match the end of an html
Expand Down

0 comments on commit 5f93160

Please sign in to comment.