Showing 850 of 1,424 total issues
Function add
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
add: function (elem, types, handler, data, selector) {
var handleObjIn, eventHandle, tmp,
events, t, handleObj,
special, handlers, type, namespaces, origType,
Function factory
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}( window, function factory( window, jQuery ) {
'use strict';
// ----- utils ----- //
Function matcherFromGroupMatchers
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function matcherFromGroupMatchers(elementMatchers, setMatchers) {
var bySet = setMatchers.length > 0,
byElement = elementMatchers.length > 0,
superMatcher = function (seed, context, xml, results, outermost) {
var elem, j, matcher,
Function doMomentum
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.doMomentum = function (gp) {
var t = now();
var l = (gp) ? t + gp : self.lasttime;
var sl = self.nc.getScrollLeft();
Function oniframeload
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var oniframeload = function () {
self.iframexd = false;
var doc;
try {
doc = 'contentDocument' in this ? this.contentDocument : this.contentWindow._doc;
Function setting
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.setting = function (req, res, next) {
var ep = new EventProxy();
ep.fail(next);
// 显示出错或成功信息
Function L
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function L(a) {
function m(a) {
var f = a.charCodeAt(0);
if (f !== 92)return f;
var b = a.charAt(1);
Function buildLineElement
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildLineElement(cm, line, lineNo, dims, reuse) {
var lineElement = lineContent(cm, line);
var markers = line.gutterMarkers, display = cm.display, wrap;
if (!cm.options.lineNumbers && !markers && !line.bgClass && !line.wrapClass && !line.widgets)
Function normalize
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function normalize(name, baseName) {
var nameParts, nameSegment, mapValue, foundMap, lastIndex,
foundI, foundStarMap, starI, i, j, part,
baseParts = baseName && baseName.split("/"),
map = config.map,
Function normalize
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function normalize(name, baseName) {
var nameParts, nameSegment, mapValue, foundMap, lastIndex,
foundI, foundStarMap, starI, i, j, part,
baseParts = baseName && baseName.split("/"),
map = config.map,
Function done
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function done(status, nativeStatusText, responses, headers) {
var isSuccess, success, error, response, modified,
statusText = nativeStatusText;
// Called once
Function 20
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],20:[function(require,module,exports){
// Block quotes
'use strict';
File jquery-ujs.js
has 278 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function ($, undefined) {
/**
* Unobtrusive scripting adapter for jQuery
* https://github.com/rails/jquery-ujs
Consider simplifying this complex logical expression. Open
Open
this.mapData(this.dataCache,maskPattern);},setupPositionProbePattern:function(row,col){for(var r=-1;r<=7;r++){if(row+r<=-1||this.moduleCount<=row+r)continue;for(var c=-1;c<=7;c++){if(col+c<=-1||this.moduleCount<=col+c)continue;if((0<=r&&r<=6&&(c==0||c==6))||(0<=c&&c<=6&&(r==0||r==6))||(2<=r&&r<=4&&2<=c&&c<=4)){this.modules[row+r][col+c]=true;}else{this.modules[row+r][col+c]=false;}}}},getBestMaskPattern:function(){var minLostPoint=0;var pattern=0;for(var i=0;i<8;i++){this.makeImpl(true,i);var lostPoint=QRUtil.getLostPoint(this);if(i==0||minLostPoint>lostPoint){minLostPoint=lostPoint;pattern=i;}}
Function fromElement
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Options.prototype.fromElement = function ($e) {
var excludedData = ['select2'];
if (this.options.multiple == null) {
this.options.multiple = $e.prop('multiple');
Function fromElement
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Options.prototype.fromElement = function ($e) {
var excludedData = ['select2'];
if (this.options.multiple == null) {
this.options.multiple = $e.prop('multiple');
Function setMatcher
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setMatcher(preFilter, selector, matcher, postFilter, postFinder, postSelector) {
if (postFilter && !postFilter[ expando ]) {
postFilter = setMatcher(postFilter);
}
if (postFinder && !postFinder[ expando ]) {
Function eventsListeners
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
pJS.fn.vendors.eventsListeners = function(){
/* events target element */
if(pJS.interactivity.detect_on == 'window'){
pJS.interactivity.el = window;
Function show
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.show = function (req, res, next) {
var topicId = String(req.params.id);
var mdrender = req.query.mdrender === 'false' ? false : true;
var ep = new EventProxy();
Function RuntimeClient
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function RuntimeClient(component, standalone) {
var deferred = Base.Deferred(),
runtime;
this.uid = Base.guid('client_');