assets/digest/edit.js
File edit.js
has 430 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*jslint browser: true*/
/*global $, define, rangy, _, prompt, alert, Detector, WebSyncData, ace, JST*/
//= require templates/edit-ribbon
//= require templates/edit-body
Function startVoice
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var startVoice = function() {
lastResults = [];
nodes = [];
recognition = new webkitSpeechRecognition();
Avoid deeply nested control flow statements. Open
Open
if (parent.css('text-indent') === '0px') {
if (parent.attr('contenteditable') === 'true') {
node.wrap("<div style='text-indent: 40px'></div>");
} else {
parent.css({