Showing 3,976 of 3,976 total issues
Function core
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getJasmineRequire().core = function(jRequire) {
var j$ = {};
jRequire.base(j$, jasmineGlobal);
j$.util = jRequire.util();
Function fadeInImage
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Materialize.fadeInImage = function(selectorOrEl) {
var element;
if (typeof(selectorOrEl) === 'string') {
element = $(selectorOrEl);
} else if (typeof(selectorOrEl) === 'object') {
Function refreshPositions
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refreshPositions: function(fast) {
// Determine whether items are being displayed horizontally
this.floating = this.items.length ?
this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
Function _keydown
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_keydown: function( event ) {
if ( event.altKey || event.ctrlKey ) {
return;
}
Function complete
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
complete: function( thumb ) {
// shrink thumbnails to fit
var top = ['left', 'top'],
arr = ['Width', 'Height'],
Function fadeInImage
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Materialize.fadeInImage = function(selectorOrEl) {
var element;
if (typeof(selectorOrEl) === 'string') {
element = $(selectorOrEl);
} else if (typeof(selectorOrEl) === 'object') {
Function loop
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loop: function() {
var distance = this.to - this.pos,
factor = 1;
Function fadeInImage
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Materialize.fadeInImage = function(selectorOrEl) {
var element;
if (typeof(selectorOrEl) === 'string') {
element = $(selectorOrEl);
} else if (typeof(selectorOrEl) === 'object') {
Function _keydown
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_keydown: function( event ) {
if ( event.altKey || event.ctrlKey ) {
return;
}
Function refreshPositions
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refreshPositions: function(fast) {
// Determine whether items are being displayed horizontally
this.floating = this.items.length ?
this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
Function startInteraction
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
startInteraction: function(ev, extraOptions) {
var isTouch = getEvIsTouch(ev);
if (ev.type === 'mousedown') {
if (this.isIgnoringMouse) {
Function remove
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( owner, key ) {
var i, name, camel,
cache = owner[ this.expando ];
if ( cache === undefined ) {
Function refresh
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refresh: function() {
if(settings.popup) {
$popup = $(settings.popup).eq(0);
}
else {
Function buildEventSource
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildEventSource(sourceInput) { // will return undefined if invalid source
var normalizers = FC.sourceNormalizers;
var source;
var i;
Function buildGotoAnchorHtml
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildGotoAnchorHtml: function(gotoOptions, attrs, innerHtml) {
var date, type, forceOff;
var finalOptions;
if ($.isPlainObject(gotoOptions)) {
Function animate
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
animate: function(propertyObject, callback) {
module.verbose('Animating box with properties', propertyObject);
callback = callback || function(event) {
module.verbose('Executing animation callback');
if(event !== undefined) {
Function percent
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
percent: function(percent) {
percent = (typeof percent == 'string')
? +(percent.replace('%', ''))
: percent
;
Function translate
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function translate(number, withoutSuffix, key, isFuture) {
var result = '';
switch (key) {
case 's':
return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
Function compileNode
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Switch.prototype.compileNode = function(o) {
var block, body, cond, conditions, expr, fragments, i, idt1, idt2, j, k, len1, len2, ref3, ref4, ref5;
idt1 = o.indent + TAB;
idt2 = o.indent = idt1 + TAB;
fragments = [].concat(this.makeCode(this.tab + "switch ("), (this.subject ? this.subject.compileToFragments(o, LEVEL_PAREN) : this.makeCode("false")), this.makeCode(") {\n"));
Function relativeTimeMr
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function relativeTimeMr(number, withoutSuffix, string, isFuture)
{
var output = '';
if (withoutSuffix) {
switch (string) {