Showing 5,566 of 7,504 total issues
Function detectVerticalSquash
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadImage.detectVerticalSquash = function (img, subsampled) {
var naturalHeight = img.naturalHeight || img.height,
canvas = document.createElement('canvas'),
context = canvas.getContext('2d'),
data,
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 getInfo
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getInfo: function (file, fn){
var info = {}, readers = _infoReader.concat();
if( api.isFile(file) ){
(function _next(){
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 select
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
select: function (evt){
try {
var
inp = flash.getInput(evt.flashId)
, uid = api.uid(inp)
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 guestPackagesController
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var guestPackagesController = function ($http, $q, $location, dataService) {
var url = $location.absUrl();
var lastSlash = url.lastIndexOf('/');
var year = url.slice(lastSlash + 1);
Function _getWH
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getWH : function() {
var $container = this.$( 'container' ),
$target = this.$( 'target' ),
self = this,
Function init
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init : function(page, args) {
$.extend( this, args || {} );
$('#wpbody-content').css('overflow','hidden');
$('.meta-box-sortables').sortable({
placeholder: 'sortable-placeholder',
Function initialize
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function() {
_.bindAll( this, 'setWidth' );
// Add the button view
this.views.add( new revisions.view.Buttons({
Function extend
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Event.extend = (function() {
var methods = Object.keys(Event.Methods).inject({ }, function(m, name) {
m[name] = Event.Methods[name].methodize();
return m;
});
Function nth
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nth: function(nodes, formula, root, reverse, ofType) {
if (nodes.length == 0) return [];
if (formula == 'even') formula = '2n+0';
if (formula == 'odd') formula = '2n+1';
var h = Selector.handlers, results = [], indexed = [], m;
Function walk
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function walk(node) {
var name = node.name, currentNode = node;
if (name === 'br') {
text += '\n';
Function fit
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fit: function( dimensions ) {
var width = dimensions.width,
height = dimensions.height,
maxWidth = dimensions.maxWidth,
maxHeight = dimensions.maxHeight,
Function toViews
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toViews: function( content ) {
var pieces = [ { content: content } ],
current;
_.each( views, function( view, viewType ) {
Function setParams
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},setParams:function(){
this.imgW=this.img.width;
this.imgH=this.img.height;
if(!this.isIE){
Element.setStyle($(this.overlay),{width:this.imgW+"px",height:this.imgH+"px"});
Function nth
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nth: function(nodes, formula, root, reverse, ofType) {
if (nodes.length == 0) return [];
if (formula == 'even') formula = '2n+0';
if (formula == 'odd') formula = '2n+1';
var h = Selector.handlers, results = [], indexed = [], m;
Function keyHandler
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keyHandler : function(evt) {
keyCode = evt.keyCode;
charCode = evt.charCode;
fromChar = String.fromCharCode(charCode);
Function extend
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Event.extend = (function() {
var methods = Object.keys(Event.Methods).inject({ }, function(m, name) {
m[name] = Event.Methods[name].methodize();
return m;
});
Function renderSettings
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderSettings: function( browser ) {
var library = this.get('library'),
collectionType = this.get('collectionType'),
dragInfoText = this.get('dragInfoText'),
SettingsView = this.get('SettingsView'),