Showing 6 of 8 total issues
Function exports
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
File MutationWatcher.js
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license
* @author Bohdan Shtepan
*
* MutationWatcher 1.0.2
Function _getConfig
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getConfig = function(target, opt) {
var that = this,
options = opt || { all: true, subtree: false },
toSet = {
elements: false,
Function _publisher
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_publisher = function(mutationData) {
var that = this,
mutation = _getMutationData(mutationData),
cond;
Function _watch
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_watch = function(target, options) {
var that = this;
// Checks if there is observing that started earlier, if so - stops it
if (that._isObserving) {
Function _getMutationData
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getMutationData = function(mr) {
var md = {},
props = ['target', 'attributeName', 'attributeNameNamespace', 'oldValue', 'newValue',
'attributeChange', 'relatedNode', 'addedNodes', 'removedNodes', 'previousSibling', 'nextSibling', 'type'];