Showing 16 of 53 total issues
File gestures.js
has 425 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
Scoped.define("module:Gestures.ElementStateHost", [
"base:States.CompetingHost",
"module:Gestures.GestureStates",
"base:Classes.ClassRegistry",
"browser:Dom"
File drag.js
has 311 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
Scoped.define("module:Interactions.Drag", [
"module:Interactions.ElementInteraction",
"module:Elements.ElementModifier",
"browser:Dom",
"module:Events.Support",
File scroll.js
has 295 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
Scoped.define("module:Interactions.Scroll", [
"module:Interactions.ElementInteraction",
"base:Objs",
"base:Types",
"base:Async",
Function _start
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_start: function() {
var parentElement = this.parent()._element;
this._initial_element_coords = {
Function constructor
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function(element, options, data, stateNS) {
stateNS = stateNS || ScrollStates;
options = Objs.extend({
discrete: false,
currentCenter: false,
Function _start
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_start: function() {
if (!this._abortable)
this.parent().disableScroll();
this.parent().trigger("scrollto");
this.on(this.element(), "scroll", function() {
Function _apply
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_apply: function(value) {
var node = this._node;
var handler = node._handler;
node.interactions = node.interactions || {};
if (this._postfix in node.interactions && !node.interactions[this._postfix].destroyed()) {
Function exports
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json');
var gruntHelper = require('betajs-compile');
var dist = 'betajs-ui';
Function _rotateFix
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_rotateFix: function() {
var itemsElementChildren = this.itemsElement().children;
var top_ws_height = this._whitespaceGetHeight(this.__top_white_space);
var bottom_ws_height = this._whitespaceGetHeight(this.__bottom_white_space);
var full_height = this.element().scrollHeight;
Function constructor
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function(element, options, data) {
options = Objs.extend({
append_count: 25,
prepend_count: 25,
height_factor: 3,
Function _apply
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_apply: function(value) {
var node = this._node;
var handler = node._handler;
node.gestures = node.gestures || {};
if (this._postfix in node.gestures && !node.gestures[this._postfix].destroyed())
Function dispatchPointsSeparatorEvent
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
dispatchPointsSeparatorEvent: function(element, label, included, excluded, data, options) {
Consider simplifying this complex logical expression. Open
Open
if (("x" in box && box.x >= 0 && delta.x >= box.x) || ("y" in box && box.y >= 0 && delta.y >= box.y))
this.callback();
Function __on
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
__on: function(element, event, callback, context, options) {
Function on
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
on: function(element, event, callback, context, options) {
Function dispatchManualBubbleEvent
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
dispatchManualBubbleEvent: function(element, label, predicate, data, options) {