Showing 169 of 403 total issues
Function observe
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function observe(obj, callback) {
var patches = [];
var root = obj;
var observer;
var mirror = getMirror(obj);
Function updateSettings
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.updateSettings = function (settings, init) {
var i, clen;
if (typeof settings.rows !== "undefined") {
throw new Error("'rows' setting is no longer supported. do you mean startRows, minRows or maxRows?");
Function WalkontableBorder
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WalkontableBorder(instance, settings) {
var style;
if(!settings){
return;
Function populateFromArray
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
populateFromArray: function (start, input, end, source, method) {
var r, rlen, c, clen, setData = [], current = {};
rlen = input.length;
if (rlen === 0) {
return false;
Function onBeforeKeyDown
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ContextMenu.prototype.onBeforeKeyDown = function (event) {
var contextMenu = this;
var instance = $(contextMenu.menu).handsontable('getInstance');
var selection = instance.getSelected();
Function CheckboxRenderer
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var CheckboxRenderer = function (instance, TD, row, col, prop, value, cellProperties) {
if (typeof cellProperties.checkedTemplate === "undefined") {
cellProperties.checkedTemplate = true;
}
Function CopyPastePlugin
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CopyPastePlugin(instance) {
this.copyPasteInstance = CopyPaste.getInstance();
this.copyPasteInstance.onCut(onCut);
this.copyPasteInstance.onPaste(onPaste);
Function WalkontableTable
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WalkontableTable(instance, table) {
//reference to instance
this.instance = instance;
this.TABLE = table;
Handsontable.Dom.removeTextNodes(this.TABLE);
Function adjustRowsAndCols
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
adjustRowsAndCols: function () {
var r, rlen, emptyRows, emptyCols;
//should I add empty rows to data source to meet minRows?
rlen = instance.countRows();
Function init
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CopyPasteClass.prototype.init = function () {
var that = this
, style
, parent;
Function alter
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
alter: function (action, index, amount, source, keepEmptyRows) {
var delta;
amount = amount || 1;
Function bindMoveRowEvents
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var bindMoveRowEvents = function () {
var instance = this;
instance.rootElement.on('mousemove.manualRowMove', function (e) {
if (pressed) {
Function apply
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Autofill.prototype.apply = function () {
var drag, select, start, end, _data;
this.handle.isDragged = 0;
Function bindMoveColEvents
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var bindMoveColEvents = function () {
var instance = this;
instance.rootElement.on('mousemove.manualColumnMove', function (e) {
if (pressed) {
Function WalkontableEvent
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WalkontableEvent(instance) {
var that = this;
//reference to instance
this.instance = instance;
Function WalkontableSettings
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WalkontableSettings(instance, settings) {
var that = this;
this.instance = instance;
//default settings. void 0 means it is required, null means it can be empty
Function prepareBorder
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepareBorder (range,place, type) {
type = "Solid";
// WHEN WE WANT TO CHANGE/ADD VIA CSS TOP BORDER THE WHOLE ROW MOVES 1PX VERTICAL
// WHEN WE WANT TO CHANGE/ADD VIA CSS RIGHT BORDER THE WHOLE COLUMN MOVES 1PX HORIZONTAL
Function refreshSelections
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
WalkontableTable.prototype.refreshSelections = function (selectionsOnly) {
var vr
, r
, vc
, c
Function validateChanges
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function validateChanges(changes, source, callback) {
var waitingForValidator = new ValidatorsQueue();
waitingForValidator.onQueueEmpty = resolve;
for (var i = changes.length - 1; i >= 0; i--) {
Function runHookForOperation
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function runHookForOperation(rawPatches){
var instance = this;
var patches = cleanPatches(rawPatches);
for(var i = 0, len = patches.length; i < len; i++){