Showing 476 of 1,049 total issues
Function showDialog
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showDialog() {
var last = {};
function updateButtonStates() {
win.statusbar.find('#next').disabled(!findSpansByIndex(currentIndex + 1).length);
Function trigger
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
trigger: function( event, data, elem, onlyHandlers ) {
var handle, ontype, cur,
bubbleType, special, tmp, i,
eventPath = [ elem || document ],
type = hasOwn.call( event, "type" ) ? event.type : event,
Function trigger
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
trigger: function( event, data, elem, onlyHandlers ) {
var handle, ontype, cur,
bubbleType, special, tmp, i,
eventPath = [ elem || document ],
type = hasOwn.call( event, "type" ) ? event.type : event,
Function parseCurrentLine
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseCurrentLine(editor, end_offset, delimiter) {
var rng, end, start, endContainer, bookmark, text, matches, prev, len, rngText;
function scopeIndex(container, index) {
if (index < 0) {
Function Animation
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Animation( elem, properties, options ) {
var result,
stopped,
index = 0,
length = animationPrefilters.length,
Function click
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
click = function (e) {
e.stopPropagation();
e.preventDefault();
picker.unset = false;
var target = $(e.target).closest('span, td, th'), month, year, step, day, oldDate = pMoment(picker.date);
Function Animation
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Animation( elem, properties, options ) {
var result,
stopped,
index = 0,
length = animationPrefilters.length,
Function colorPickerCallback
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function colorPickerCallback(callback, value) {
function setColor(value) {
var color = new tinymce.util.Color(value), rgb = color.toRgb();
win.fromJSON({
Function dataToHtml
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dataToHtml(data) {
var html = '';
if (!data.source1) {
tinymce.extend(data, htmlToData(data.embed));
Function addToolbar
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addToolbar(items) {
var toolbarItems = [], buttonGroup;
if (!items) {
return;
Function addToolbar
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addToolbar(items) {
var toolbarItems = [], buttonGroup;
if (!items) {
return;
Function setContent
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setContent(evt) {
var startPos, endPos, content = evt.content, headerFragment, styles = '', dom = editor.dom, elm;
if (evt.selection) {
return;
Function renderInlineUI
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderInlineUI(args) {
var panel, inlineToolbarContainer;
if (settings.fixed_toolbar_container) {
inlineToolbarContainer = DOM.select(settings.fixed_toolbar_container)[0];
Function renderInlineUI
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderInlineUI(args) {
var panel, inlineToolbarContainer;
if (settings.fixed_toolbar_container) {
inlineToolbarContainer = DOM.select(settings.fixed_toolbar_container)[0];
Function showDialog
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showDialog(templateList) {
var win, values = [], templateHtml;
if (!templateList || templateList.length === 0) {
editor.windowManager.alert('No templates defined');
Function applyList
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function applyList(listName) {
var rng = selection.getRng(true), bookmark = createBookmark(rng), listItemName = 'LI';
listName = listName.toUpperCase();
Function createMenuButtons
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createMenuButtons() {
var name, menuButtons = [];
function createMenuItem(name) {
var menuItem;
Function createMenuButtons
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createMenuButtons() {
var name, menuButtons = [];
function createMenuItem(name) {
var menuItem;
Function Sizzle
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Sizzle( selector, context, results, seed ) {
var match, elem, m, nodeType,
// QSA vars
i, groups, old, nid, newContext, newSelector;
Function Sizzle
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Sizzle( selector, context, results, seed ) {
var match, elem, m, nodeType,
// QSA vars
i, groups, old, nid, newContext, newSelector;