Showing 295 of 1,636 total issues
Function DelegateService
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ionic.DelegateService = function(methodNames) {
if (methodNames.indexOf('$getByHandle') > -1) {
throw new Error("Method '$getByHandle' is implicitly added to each delegate service. Do not list it as a method.");
}
Function __stepThroughDeceleration
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__stepThroughDeceleration: function(render) {
var self = this;
//
Function updateSlides
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateSlides( selector, index ) {
// Select all slides and convert the NodeList result to
// an array
var slides = toArray( dom.wrapper.querySelectorAll( selector ) ),
Function onDocumentKeyDown
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onDocumentKeyDown( event ) {
// If there's a condition specified and it returns false,
// ignore this event
if( typeof config.keyboardCondition === 'function' && config.keyboardCondition() === false ) {
Function __repositionScrollbars
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__repositionScrollbars: function() {
var self = this,
heightScale, widthScale,
widthDiff, heightDiff,
x, y,
Function __initEventHandlers
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__initEventHandlers: function() {
var self = this;
// Event Handler
var container = self.__container;
Function getRenderFn
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getRenderFn: function() {
var self = this;
var content = self.__content;
Function magnify
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function magnify( rect, scale ) {
var scrollOffset = getScrollOffset();
// Ensure a width/height is set
Function onTouchMove
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onTouchMove( event ) {
// Each touch should only trigger one action
if( !touch.captured ) {
onUserInput( event );
Function compile
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function(tElement, tAttrs) {
// clone the back button, but as a <div>
var buttonEle = $document[0].createElement('button');
for (var n in tAttrs.$attr) {
Function $StateRefDirective
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $StateRefDirective($state, $timeout) {
var allowedOptions = ['location', 'inherit', 'reload'];
return {
restrict: 'A',
Function end
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
end: function() {
// measure duration
var duration = +new Date() - start.time;
File angular-resource.js
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.4.3
* (c) 2010-2015 Google, Inc. http://angularjs.org
* License: MIT
*/
Function createBackground
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createBackground( slide, container ) {
var data = {
background: slide.getAttribute( 'data-background' ),
backgroundSize: slide.getAttribute( 'data-background-size' ),
Function compile
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function (tElement, tAttrs, $transclude) {
return function (scope, $element, attrs) {
var previousEl, currentEl, currentScope, latestLocals,
onloadExp = attrs.onload || '',
autoScrollExp = attrs.autoscroll,
Function addEventListeners
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addEventListeners() {
eventsAreBound = true;
window.addEventListener( 'hashchange', onWindowHashChange, false );
Function __publish
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__publish: function(left, top, zoom, animate, wasResize) {
var self = this;
// Remember whether we had an animation, then we try to continue based on the current "drive" of the animation
Function exports
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
require('jit-grunt')(grunt, {
'validate-package': 'grunt-nsp-package',
'validate-shrinkwrap': 'grunt-nsp-shrinkwrap'
});
Function compile
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function(element) {
element.addClass('scroll-view ionic-scroll');
//We cannot transclude here because it breaks element.data() inheritance on compile
var innerElement = jqLite('<div class="scroll"></div>');
Function openNotes
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function openNotes() {
var jsFileLocation = document.querySelector('script[src$="notes.js"]').src; // this js file path
jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path
var notesPopup = window.open( jsFileLocation + 'notes.html', 'reveal.js - Notes', 'width=1100,height=700' );