Showing 295 of 1,637 total issues
Function exec
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
UrlMatcher.prototype.exec = function (path, searchParams) {
var m = this.regexp.exec(path);
if (!m) return null;
searchParams = searchParams || {};
Function step
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var step = function(virtual) {
// Normalize virtual value
var render = virtual !== true;
Function animateScroll
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function animateScroll(Y, X) {
// scroll animation loop w/ easing
// credit https://gist.github.com/dezinezync/5487119
var start = Date.now(),
duration = 250, //milliseconds
Function start
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SlideDrag.prototype.start = function(e) {
var content, buttons, offsetX, buttonsWidth;
if (!this.canSwipe()) {
return;
Function registerState
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function registerState(state) {
// Wrap a new object around the state so we can store our private details easily.
state = inherit(state, {
self: state,
resolve: state.resolve || {},
Function invoke
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function invoke(key, invocable, params) {
// Create a deferred for this invocation. Failures will propagate to the resolution as well.
var invocation = $q.defer(), waitParams = 0;
function onfailure(reason) {
invocation.reject(reason);
Function keyboardWaitForResize
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function keyboardWaitForResize(callback, isOpening) {
clearInterval(waitForResizeTimer);
var count = 0;
var maxCount;
var initialHeight = getViewportHeight();
Function $ViewDirectiveFill
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $ViewDirectiveFill ( $compile, $controller, $state, $interpolate) {
return {
restrict: 'ECA',
priority: -400,
compile: function (tElement) {
Function link
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function($scope, $element, $attr) {
if ($attr.noTapScroll == 'true') {
return;
}
ionic.on('tap', onTap, $element[0]);
Function findState
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function findState(stateOrName, base) {
if (!stateOrName) return undefined;
var isStr = isString(stateOrName),
name = isStr ? stateOrName : stateOrName.name,
Function loadViewElements
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadViewElements: function(registerData) {
var x, l, viewEle;
var viewElements = navViewCtrl.getViewElements();
var enteringEleIdentifier = getViewElementIdentifier(viewLocals, enteringView);
var navViewActiveEleId = navViewCtrl.activeEleId();
Function $StateRefActiveDirective
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $StateRefActiveDirective($state, $stateParams, $interpolate) {
return {
restrict: "A",
controller: ['$scope', '$element', '$attrs', function ($scope, $element, $attrs) {
var state, params, activeClass;
Function get
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
get: function() {
var self = this;
function update(fn) {
return function() {
var x, classes = self.className.split(/\s+/);
Function link
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function($scope, $element, $attrs, ctrls) {
var tabsCtrl = ctrls[0],
tabCtrl = ctrls[1];
//Remove title attribute so browser-tooltip does not apear
Function resolveState
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resolveState(state, params, paramsAreFiltered, inherited, dst, options) {
// Make a restricted $stateParams with only the parameters that apply to this state if
// necessary. In addition to being available to the controller and onEnter/onExit callbacks,
// we also need $stateParams to be available for any $injector calls we make during the
// dependency resolution process.
Function instanceMethodCaller
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function instanceMethodCaller(methodName) {
return function caller() {
var handle = this.handle;
var args = arguments;
var foundInstancesCount = 0;
Function initialize
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(opts) {
var self = this;
opts = ionic.extend({
onReorder: function() {},
Function goBack
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
goBack: function(backCount) {
if (isDefined(backCount) && backCount !== -1) {
if (backCount > -1) return;
var currentHistory = viewHistory.histories[this.currentHistoryId()];
Function sortFragments
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sortFragments( fragments ) {
fragments = toArray( fragments );
var ordered = [],
Function fn
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fn: function(i) {
return {
cx: 16 + (16 * i),
cy: 32,
sw: 0,