Variable names changed from underscore to CamelCase. Eslint rules updated. #64

This commit is contained in:
n1474335 2017-01-31 18:24:56 +00:00
parent f8193797fa
commit e3c977934b
66 changed files with 3176 additions and 3172 deletions

View file

@ -52,7 +52,7 @@ OptionsWaiter.prototype.load = function(options) {
* Handler for options click events.
* Dispays the options pane.
*/
OptionsWaiter.prototype.options_click = function() {
OptionsWaiter.prototype.optionsClick = function() {
$("#options-modal").modal();
};
@ -61,7 +61,7 @@ OptionsWaiter.prototype.options_click = function() {
* Handler for reset options click events.
* Resets options back to their default values.
*/
OptionsWaiter.prototype.reset_options_click = function() {
OptionsWaiter.prototype.resetOptionsClick = function() {
this.load(this.app.doptions);
};
@ -73,7 +73,7 @@ OptionsWaiter.prototype.reset_options_click = function() {
* @param {event} e
* @param {boolean} state
*/
OptionsWaiter.prototype.switch_change = function(e, state) {
OptionsWaiter.prototype.switchChange = function(e, state) {
var el = e.target,
option = el.getAttribute("option");
@ -88,7 +88,7 @@ OptionsWaiter.prototype.switch_change = function(e, state) {
*
* @param {event} e
*/
OptionsWaiter.prototype.number_change = function(e) {
OptionsWaiter.prototype.numberChange = function(e) {
var el = e.target,
option = el.getAttribute("option");
@ -103,7 +103,7 @@ OptionsWaiter.prototype.number_change = function(e) {
*
* @param {event} e
*/
OptionsWaiter.prototype.select_change = function(e) {
OptionsWaiter.prototype.selectChange = function(e) {
var el = e.target,
option = el.getAttribute("option");
@ -113,16 +113,16 @@ OptionsWaiter.prototype.select_change = function(e) {
/**
* Sets or unsets word wrap on the input and output depending on the word_wrap option value.
* Sets or unsets word wrap on the input and output depending on the wordWrap option value.
*/
OptionsWaiter.prototype.set_word_wrap = function() {
OptionsWaiter.prototype.setWordWrap = function() {
document.getElementById("input-text").classList.remove("word-wrap");
document.getElementById("output-text").classList.remove("word-wrap");
document.getElementById("output-html").classList.remove("word-wrap");
document.getElementById("input-highlighter").classList.remove("word-wrap");
document.getElementById("output-highlighter").classList.remove("word-wrap");
if (!this.app.options.word_wrap) {
if (!this.app.options.wordWrap) {
document.getElementById("input-text").classList.add("word-wrap");
document.getElementById("output-text").classList.add("word-wrap");
document.getElementById("output-html").classList.add("word-wrap");