src/language/HTMLDOMDiff.js
Function generateChildEdits
has 211 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var generateChildEdits = function (oldParent, oldNodeMap, newParent, newNodeMap) {
/*jslint continue: true */
var newIndex = 0,
oldIndex = 0,
File HTMLDOMDiff.js
has 298 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2013 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
Function domdiff
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function domdiff(oldNode, newNode) {
var queue = [],
edits = [],
moves = [],
newElement,
Function addTextDelete
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var addTextDelete = function () {
var prev = prevNode();
if (prev && !prev.children) {
newEdit = {
type: "textReplace",
Avoid deeply nested control flow statements. Open
Open
if (!addElementDelete()) {
// Since we're not deleting and these elements don't match up, we
// must have a new element. Add an elementInsert (and log a problem
// if no insert works.)
if (!addElementInsert()) {