app/assets/javascripts/shutterbug.js
Function ShutterbugWorker
has 218 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ShutterbugWorker = function () {
function ShutterbugWorker(options) {
_classCallCheck(this, ShutterbugWorker);
var opt = options || {};
File shutterbug.js
has 417 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("jquery"));
else if(typeof define === 'function' && define.amd)
define(["jquery"], factory);
Function getHtmlFragment
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function getHtmlFragment(callback) {
var _this3 = this;
var $element = (0, _jquery2.default)(this.element);
Function getDomSnapshot
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function getDomSnapshot() {
var _this2 = this;
this.enableIframeCommunication(); // !!!
var timerID = null;
Function parseSnapshotArguments
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseSnapshotArguments(args) {
// Remember that selector is anything accepted by jQuery, it can be DOM element too.
var selector = void 0;
var doneCallback = void 0;
var dstSelector = void 0;