Showing 371 of 463 total issues
Function stop
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
stop: function( type, clearQueue, gotoEnd ) {
var stopQueue = function( hooks ) {
var stop = hooks.stop;
delete hooks.stop;
stop( gotoEnd );
Function on
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
var origFn, type;
// Types can be a map of types/handlers
if ( typeof types === "object" ) {
Function ngIncludeDirective
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function($http, $templateCache, $anchorScroll, $compile) {
return {
restrict: 'ECA',
terminal: true,
compile: function(element, attr) {
Function optionDirective
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var optionDirective = ['$interpolate', function($interpolate) {
var nullSelectCtrl = {
addOption: noop,
removeOption: noop
};
Function controller
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: ['$element', '$scope', '$attrs', function($element, $scope, $attrs) {
var self = this,
optionsMap = {},
ngModelCtrl = nullModelCtrl,
nullOption,
Function angularInit
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function angularInit(element, bootstrap) {
var elements = [element],
appElement,
module,
names = ['ng:app', 'ng-app', 'x-ng-app', 'data-ng-app'],
Function loadModules
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadModules(modulesToLoad){
var runBlocks = [];
forEach(modulesToLoad, function(module) {
if (loadedModules.get(module)) return;
loadedModules.put(module, true);
Function each
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
each: function( obj, callback, args ) {
var value,
i = 0,
length = obj.length,
isArray = isArraylike( obj );
Function link
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element, attr) {
var lastScope,
onloadExp = attr.onload || '';
scope.$on('$routeChangeSuccess', update);
Function $set
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$set: function(key, value, writeAttr, attrName) {
var booleanKey = getBooleanAttrName(this.$$element[0], key),
$$observers = this.$$observers,
normalizedVal;
Function $broadcast
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$broadcast: function(name, args) {
var target = this,
current = target,
next = target,
event = {
Function equals
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function equals(o1, o2) {
if (o1 === o2) return true;
if (o1 === null || o2 === null) return false;
if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN
var t1 = typeof o1, t2 = typeof o2, length, key, keySet;
Function showHide
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showHide( elements, show ) {
var display, elem, hidden,
values = [],
index = 0,
length = elements.length;
Function ajaxHandleResponses
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ajaxHandleResponses( s, jqXHR, responses ) {
var ct, type, finalDataType, firstDataType,
contents = s.contents,
dataTypes = s.dataTypes;
Function eventHandler
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var eventHandler = function (event, type) {
if (!event.preventDefault) {
event.preventDefault = function() {
event.returnValue = false; //ie
};
Function $LogProvider
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $LogProvider(){
this.$get = ['$window', function($window){
return {
/**
* @ngdoc method
Function when
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
when: function( subordinate /* , ..., subordinateN */ ) {
var i = 0,
resolveValues = core_slice.call( arguments ),
length = resolveValues.length,
Function defineProperty
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Object.defineProperty = function defineProperty(object, property, descriptor) {
if ((typeof object != "object" && typeof object != "function") || object === null) {
throw new TypeError(ERR_NON_OBJECT_TARGET + object);
}
if ((typeof descriptor != "object" && typeof descriptor != "function") || descriptor === null) {
Function render
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var render = ui.render = function render(index) {
var iterable;
if (index == null) {
index = 0;
iterable = ui.benchmarks;
Function readSource
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fs.readFile(path.join(__dirname, "lib", "json3.js"), "utf8", function readSource(exception, source) {
var error, output, compiler, results;
if (exception) {
console.log(exception);
} else {