Showing 3 of 3 total issues
Function _getCaretInfo
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _getCaretInfo = function(element){
var res = {
text: '',
start: 0,
end: 0
Function selection
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
selection: function(mode) {
var getText = ((mode || 'text').toLowerCase() === 'text');
try {
if (win.getSelection) {
Avoid too many return
statements within this function. Open
Open
return '';