Showing 295 of 1,642 total issues
Function executeAnimationFn
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function executeAnimationFn(fn, element, event, options, onDone) {
var args;
switch (event) {
case 'animate':
args = [element, options.from, options.to, onDone];
Function groupEventedAnimations
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function groupEventedAnimations(element, event, options, animations, fnName) {
var operations = [];
forEach(animations, function(ani) {
var animation = ani[fnName];
if (!animation) return;
Function register
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
register: function(ele) {
tapDoc = ele;
tapEventListener('click', true, true);
tapEventListener('mouseup');
Function __resizeScrollbars
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__resizeScrollbars: function() {
var self = this;
// Update horiz bar
if (self.__indicatorX) {
Function setup
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setup() {
// do not setup if the container has no width
if (!container.offsetWidth) {
return;
Function positionItem
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function positionItem(ele, itemType) {
if (!ele) return;
if (itemType === 'title') {
// title element
Function fn
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fn: function(i) {
return {
cx: 32,
cy: 32,
a: [{
Function addAttributes
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addAttributes( section, element, previousElement, separatorElementAttributes, separatorSectionAttributes ) {
if ( element != null && element.childNodes != undefined && element.childNodes.length > 0 ) {
previousParentElement = element;
for( var i = 0; i < element.childNodes.length; i++ ) {
Function prelink
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prelink($scope, $element, $attr, tabsCtrl) {
var deregisterInstance = $ionicTabsDelegate._registerInstance(
tabsCtrl, $attr.delegateHandle, tabsCtrl.hasActiveScope
);
Function zoomTo
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
zoomTo: function(level, animate, originLeft, originTop) {
var self = this;
if (!self.options.zooming) {
throw new Error("Zooming is not enabled!");
Function removeEventListeners
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function removeEventListeners() {
eventsAreBound = false;
document.removeEventListener( 'keydown', onDocumentKeyDown, false );
Function start
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function() {
var runner;
var currentAnimation = startingAnimator.start();
currentAnimation.done(function() {
Function showLoader
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showLoader(options) {
options = extend({}, $ionicLoadingConfig || {}, options || {});
var delay = options.delay || options.showDelay || 0;
deregisterStateListener1();
Function $get
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function($$rAF, $rootScope, $rootElement, $document, $$HashMap,
$$animation, $$AnimateRunner, $templateRequest, $$jqLite) {
Function $get
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function $get( $rootScope, $q, $view, $injector, $resolve, $stateParams, $urlRouter, $location, $urlMatcherFactory) {
Function showPreview
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showPreview( url ) {
closeOverlay();
dom.overlay = document.createElement( 'div' );
Function to
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
to: function( options ) {
// Due to an implementation limitation we can't zoom in
// to another element without zooming out first
if( level !== 1 ) {
Function showHelp
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showHelp() {
if( config.help ) {
closeOverlay();
Function getProgress
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getProgress() {
var horizontalSlides = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) );
// The number of past and total slides
Function updateControls
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateControls() {
var routes = availableRoutes();
var fragments = availableFragments();