Showing 295 of 1,637 total issues
Function compile
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function($element, $attr) {
var listEl = jqLite('<div class="list">')
.append($element.contents())
.addClass($attr.type);
Function actionSheet
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function actionSheet(opts) {
var scope = $rootScope.$new(true);
extend(scope, {
cancel: noop,
Function Param
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.Param = function Param(id, type, config, location) {
var self = this;
config = unwrapShorthand(config);
type = getType(config, type, location);
var arrayMode = getArrayMode();
Function Hilitor
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Hilitor(id, tag)
{
var targetNode = document.getElementById(id) || document.body;
var hiliteTag = tag || "EM";
Function link
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function link($scope, $element, $attr, ctrls) {
var childScope;
var childElement;
var tabsCtrl = ctrls[0];
var tabCtrl = ctrls[1];
Function controller
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: ['$scope', '$element', '$attrs', function($scope, $element, $attrs) {
var _this = this;
var continuous = $scope.$eval($scope.doesContinue) === true;
var shouldAutoPlay = isDefined($attrs.autoPlay) ? !!$scope.autoPlay : false;
Function UrlMatcher
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function UrlMatcher(pattern, config, parentMatcher) {
config = extend({ params: {} }, isObject(config) ? config : {});
// Find all placeholders and create a compiled pattern, using either classic or curly syntax:
// '*' name
Function $get
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $get( $location, $rootScope, $injector, $browser) {
var baseHref = $browser.baseHref(), location = $location.url(), lastPushedUrl;
function appendBasePath(url, isHtml5, absolute) {
Function transition
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.transition = function(enteringHeaderBar, leavingHeaderBar, viewData) {
var enteringHeaderBarCtrl = enteringHeaderBar.controller();
var transitionFn = $ionicConfig.transitions.navBar[viewData.navBarTransition] || $ionicConfig.transitions.navBar.none;
var transitionId = viewData.transitionId;
Function getLoader
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getLoader() {
if (!loaderInstance) {
loaderInstance = $ionicTemplateLoader.compile({
template: LOADING_TPL,
appendTo: $ionicBody.get()
Function groupAnimations
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function groupAnimations(animations) {
var preparedAnimations = [];
var refLookup = {};
forEach(animations, function(animation, index) {
var element = animation.element;
Function triggerAnimationStart
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function triggerAnimationStart() {
// just incase a stagger animation kicks in when the animation
// itself was cancelled entirely
if (animationClosed) return;
Function createPopup
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createPopup(options) {
options = extend({
scope: null,
title: '',
buttons: []
Function dragGesture
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handler: function dragGesture(ev, inst) {
if (ev.srcEvent.type == 'touchstart' || ev.srcEvent.type == 'touchend') {
this.preventedFirstMove = false;
} else if (!this.preventedFirstMove && ev.srcEvent.type == 'touchmove') {
Function init
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init() {
var listView = listCtrl.listView = new ionic.views.ListView({
el: $element[0],
listEl: $element.children()[0],
scrollEl: scrollCtrl && scrollCtrl.element,
Function updateBackground
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateBackground( includeAll ) {
var currentBackground = null;
// Reverse past/future classes when in RTL mode
Function RevealNotes
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var RevealNotes = (function() {
function openNotes() {
var jsFileLocation = document.querySelector('script[src$="notes.js"]').src; // this js file path
jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path
Function doTouchEnd
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
doTouchEnd: function(e, timeStamp) {
if (timeStamp instanceof Date) {
timeStamp = timeStamp.valueOf();
}
if (typeof timeStamp !== "number") {
Function $get
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$get: ['$q', function($q) {
var self = {
/**
* @ngdoc method
Function configure
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function configure( options ) {
var numberOfSlides = dom.wrapper.querySelectorAll( SLIDES_SELECTOR ).length;
dom.wrapper.classList.remove( config.transition );