Showing 295 of 1,631 total issues
Function select
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.select = function(tab, shouldEmitEvent) {
var tabIndex;
if (isNumber(tab)) {
tabIndex = tab;
if (tabIndex >= self.tabs.length) return;
Function format
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
UrlMatcher.prototype.format = function (values) {
values = values || {};
var segments = this.segments, params = this.parameters(), paramset = this.params;
if (!this.validates(values)) return null;
Function _startDrag
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_startDrag: function(e) {
var self = this;
self._isDragging = false;
Function ArrayType
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ArrayType(type, mode) {
function bindTo(type, callbackName) {
return function() {
return type[callbackName].apply(type, arguments);
};
Function scrollTo
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scrollTo: function(left, top, animate, zoom, wasResize) {
var self = this;
// Stop deceleration
if (self.__isDecelerating) {
Function load
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function load() {
var scripts = [],
scriptsAsync = [],
scriptsToPreload = 0;
Function updateSlidesVisibility
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateSlidesVisibility() {
// Select all slides and convert the NodeList result to
// an array
var horizontalSlides = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ),
Function scrollTo
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scrollTo: function(left, top, animate) {
var self = this;
if (!animate) {
self.el.scrollTop = top;
self.el.scrollLeft = left;
Function activateOverview
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function activateOverview() {
// Only proceed if enabled in config
if( config.overview ) {
Function hiliteWords
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.hiliteWords = function(node)
{
if(node == undefined || !node) return;
if(!matchRegex) return;
if(skipTags.test(node.nodeName)) return;
Function __cleanup
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__cleanup: function() {
var self = this;
var container = self.__container;
container.removeEventListener('touchstart', self.touchStart);
Function colorToRgb
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function colorToRgb( color ) {
var hex3 = color.match( /^#([0-9a-f]{3})$/i );
if( hex3 && hex3[1] ) {
hex3 = hex3[1];
Function $$rAFSchedulerFactory
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $$rAFSchedulerFactory = ['$$rAF', function($$rAF) {
var tickQueue = [];
var cancelFn;
function scheduler(tasks) {
Function touchmove
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
touchmove: function(event) {
// ensure swiping with one touch and not pinching
// ensure sliding is enabled
if (event.touches.length > 1 ||
Function scrollChildIntoView
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.scrollChildIntoView = function(e) {
//console.log("scrollChildIntoView at: " + Date.now());
// D
var scrollBottomOffsetToTop = container.getBoundingClientRect().bottom;
Function android
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
android: function(ele) {
var rIndex = 0;
var rotateCircle = 0;
var startTime;
var svgEle = ele.querySelector('g');
Function fn
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fn: function(i) {
return {
x1: 10 + (i * 14),
x2: 10 + (i * 14),
a: [{
Function updatePositions
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.updatePositions = function(titleEle, updateTitleLeft, updateTitleRight, buttonsLeft, buttonsRight, updateCss, showPreviousTitle) {
var deferred = $q.defer();
// only make DOM updates when there are actual changes
if (titleEle) {
Function end
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SlideDrag.prototype.end = function(e, doneCallback) {
var self = this;
// There is no drag, just end immediately
if (!self._currentDrag) {
Function tapScrollToTopDirective
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tapScrollToTopDirective() {
return ['$ionicScrollDelegate', function($ionicScrollDelegate) {
return {
restrict: 'E',
link: function($scope, $element, $attr) {