app/assets/javascripts/caret/jquery.caret.js
Function caret
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.caret = function(pos) {
var target = this[0];
var isContentEditable = target.contentEditable === 'true';
//get
if (arguments.length == 0) {
Avoid too many return
statements within this function. Open
Open
return target.selectionStart;
Avoid too many return
statements within this function. Open
Open
return 0;
Avoid too many return
statements within this function. Open
Open
return this;