Showing 7,504 of 7,504 total issues
Function participantController
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var participantController = function ($scope, $http, $q, $location, modalFactory, dataService) {
var url = $location.absUrl();
var lastSlash = url.lastIndexOf('/');
var province = url.slice(lastSlash + 1);
var year = url.slice(lastSlash - 4, lastSlash);
Function flash
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
flash: function(params, complete) {
$(params.next).css({
opacity: 0,
left: 0
});
Function _processPosition
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_processPosition: function( position ) {
var opposite = {
top: 'bottom',
bottom: 'top',
left: 'right',
Function ready
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ready: function() {
this.top = this.$el.offset().top;
this.window = $(window);
this.window.on( 'scroll.wp.revisions', {controls: this}, function(e) {
var controls = e.data.controls,
Function refreshEditor
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refreshEditor : function(postid, nonce, callback) {
var t = this, data, img;
t.toggleEditor(postid, 1);
data = {
Function clickShortlink
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clickShortlink = function(e) {
var i, l, node,
t = e.target || e.srcElement;
// Make t the shortlink menu item, or return.
Function clonePosition
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clonePosition: function(element, source) {
var options = Object.extend({
setLeft: true,
setTop: true,
setWidth: true,
Function getElementsByClassName
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
if (!document.getElementsByClassName) document.getElementsByClassName = function(instanceMethods){
function iter(name) {
return name.blank() ? null : "[contains(concat(' ', @class, ' '), ' " + name + " ')]";
}
Function extend
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Element.extend = (function() {
if (Prototype.BrowserFeatures.SpecificElementExtensions)
return Prototype.K;
var Methods = { }, ByTag = Element.Methods.ByTag;
Function insert
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Element.Methods.insert = function(element, insertions) {
element = $(element);
if (Object.isString(insertions) || Object.isNumber(insertions) ||
Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
Function refresh
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refresh: function() {
var node, attached, container, id;
if ( this.browser ) {
node = this.browser[0];
Function addToolbar
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addToolbar( node ) {
var rectangle, toolbarHtml, toolbar, left,
dom = editor.dom;
removeToolbar();
Function end
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
end: function(name) {
if (name == "video" && updateAll) {
for (var index = 1; index <= 2; index++) {
if (data["source" + index]) {
var attrs = [];
Function extend
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Element.extend = (function() {
if (Prototype.BrowserFeatures.SpecificElementExtensions)
return Prototype.K;
var Methods = { }, ByTag = Element.Methods.ByTag;
Function Selection
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
{return{x:a[0],y:a[1],x2:a[2],y2:a[3],w:a[2]-a[0],h:a[3]-a[1]};};return{flipCoords:flipCoords,setPressed:setPressed,setCurrent:setCurrent,getOffset:getOffset,moveOffset:moveOffset,getCorner:getCorner,getFixed:getFixed};}();var Selection=function()
{var start,end,dragmode,awake,hdep=370;var borders={};var handle={};var seehandles=false;var hhs=options.handleOffset;if(options.drawBorders){borders={top:insertBorder('hline').css('top',$.browser.msie?px(-1):px(0)),bottom:insertBorder('hline'),left:insertBorder('vline'),right:insertBorder('vline')};}
if(options.dragEdges){handle.t=insertDragbar('n');handle.b=insertDragbar('s');handle.r=insertDragbar('e');handle.l=insertDragbar('w');}
options.sideHandles&&createHandles(['n','s','e','w']);options.cornerHandles&&createHandles(['sw','nw','ne','se']);function insertBorder(type)
{var jq=$('<div />').css({position:'absolute',opacity:options.borderOpacity}).addClass(cssClass(type));$img_holder.append(jq);return jq;};function dragDiv(ord,zi)
Function insert
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Element.Methods.insert = function(element, insertions) {
element = $(element);
if (Object.isString(insertions) || Object.isNumber(insertions) ||
Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
Function getElementsByClassName
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
if (!document.getElementsByClassName) document.getElementsByClassName = function(instanceMethods){
function iter(name) {
return name.blank() ? null : "[contains(concat(' ', @class, ' '), ' " + name + " ')]";
}
Function clonePosition
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clonePosition: function(element, source) {
var options = Object.extend({
setLeft: true,
setTop: true,
setWidth: true,
Function initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(element) {
this.element = $(element);
if (!this.element) throw(Effect._elementDoesNotExistError);
var options = Object.extend({
style: { }
Function initSettings
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SWFUpload.prototype.initSettings = (function (oldInitSettings) {
return function () {
if (typeof(oldInitSettings) === "function") {
oldInitSettings.call(this);
}