Created
November 25, 2015 16:50
-
-
Save danpoltawski/f2351161739286643430 to your computer and use it in GitHub Desktop.
codebase jshint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Running "jshint:files" (jshint) task | |
| blocks/navigation/yui/src/navigation/js/navigation.js | |
| 203 |var TREE = function() { | |
| ^ 'TREE' was used before it was defined. | |
| 436 |var BRANCH = function() { | |
| ^ 'BRANCH' was used before it was defined. | |
| course/yui/src/categoryexpander/js/categoryexpander.js | |
| 16 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| 42 | URL = M.cfg.wwwroot + '/course/category.ajax.php'; | |
| ^ Redefinition of 'URL'. | |
| course/yui/src/dragdrop/js/dragdrop.js | |
| 7 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| 7 |var CSS = { | |
| ^ 'CSS' is defined but never used. | |
| course/yui/src/management/js/category.js | |
| 443 |Y.extend(Category, Item, Category.prototype); | |
| ^ 'Item' is not defined. | |
| course/yui/src/management/js/console.js | |
| 238 | this.set('dragdrop', new DragDrop({console:this})); | |
| ^ 'DragDrop' is not defined. | |
| 269 | this.set('categories', new Category({ | |
| ^ 'Category' is not defined. | |
| 307 | this.registerCourse(new Course({ | |
| ^ 'Course' is not defined. | |
| course/yui/src/management/js/course.js | |
| 186 |Y.extend(Course, Item, Course.prototype); | |
| ^ 'Item' is not defined. | |
| course/yui/src/management/js/dd.js | |
| 10 | Console.superclass.constructor.apply(this, [config]); | |
| ^ 'Console' is not defined. | |
| course/yui/src/modchooser/js/modchooser.js | |
| 7 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| course/yui/src/toolboxes/js/resource.js | |
| 27 |Y.extend(RESOURCETOOLBOX, TOOLBOX, { | |
| ^ 'TOOLBOX' is not defined. | |
| 83 | BODY.delegate('key', this.handle_data_action, 'down:enter', SELECTOR.ACTIVITYACTION, this); | |
| ^ 'BODY' is not defined. | |
| 83 | BODY.delegate('key', this.handle_data_action, 'down:enter', SELECTOR.ACTIVITYACTION, this); | |
| ^ 'SELECTOR' is not defined. | |
| 84 | Y.delegate('click', this.handle_data_action, BODY, SELECTOR.ACTIVITYACTION, this); | |
| ^ 'BODY' is not defined. | |
| 84 | Y.delegate('click', this.handle_data_action, BODY, SELECTOR.ACTIVITYACTION, this); | |
| ^ 'SELECTOR' is not defined. | |
| 101 | node = node.ancestor(SELECTOR.ACTIVITYACTION); | |
| ^ 'SELECTOR' is not defined. | |
| 107 | activity = node.ancestor(SELECTOR.ACTIVITYLI); | |
| ^ 'SELECTOR' is not defined. | |
| 165 | var actionarea = activity.one(SELECTOR.ACTIONAREA); | |
| ^ 'SELECTOR' is not defined. | |
| 189 | var indentdiv = activity.one(SELECTOR.MODINDENTDIV), | |
| ^ 'SELECTOR' is not defined. | |
| 199 | if (newindent < INDENTLIMITS.MIN || newindent > INDENTLIMITS.MAX) { | |
| ^ 'INDENTLIMITS' is not defined. | |
| 199 | if (newindent < INDENTLIMITS.MIN || newindent > INDENTLIMITS.MAX) { | |
| ^ 'INDENTLIMITS' is not defined. | |
| 221 | if (newindent === INDENTLIMITS.MIN) { | |
| ^ 'INDENTLIMITS' is not defined. | |
| 224 | } else if (newindent > INDENTLIMITS.MIN && oldindent === INDENTLIMITS.MIN) { | |
| ^ 'INDENTLIMITS' is not defined. | |
| 224 | } else if (newindent > INDENTLIMITS.MIN && oldindent === INDENTLIMITS.MIN) { | |
| ^ 'INDENTLIMITS' is not defined. | |
| 228 | if (newindent === INDENTLIMITS.MAX) { | |
| ^ 'INDENTLIMITS' is not defined. | |
| 231 | } else if (newindent < INDENTLIMITS.MAX && oldindent === INDENTLIMITS.MAX) { | |
| ^ 'INDENTLIMITS' is not defined. | |
| 231 | } else if (newindent < INDENTLIMITS.MAX && oldindent === INDENTLIMITS.MAX) { | |
| ^ 'INDENTLIMITS' is not defined. | |
| 392 | SELECTOR.ACTIVITYLINK, | |
| ^ 'SELECTOR' is not defined. | |
| 393 | SELECTOR.CONTENTWITHOUTLINK | |
| ^ 'SELECTOR' is not defined. | |
| 420 | if (activity.one(SELECTOR.CONTENTWITHOUTLINK)) { | |
| ^ 'SELECTOR' is not defined. | |
| 421 | dimarea = activity.one(SELECTOR.CONTENTWITHOUTLINK); | |
| ^ 'SELECTOR' is not defined. | |
| 431 | activity.all(SELECTOR.CONTENTAFTERLINK).addClass(CSS.DIMMEDTEXT); | |
| ^ 'SELECTOR' is not defined. | |
| 436 | activity.all(SELECTOR.CONTENTAFTERLINK).removeClass(CSS.DIMMEDTEXT); | |
| ^ 'SELECTOR' is not defined. | |
| 527 | instancename = activity.one(SELECTOR.INSTANCENAME), | |
| ^ 'SELECTOR' is not defined. | |
| 528 | instance = activity.one(SELECTOR.ACTIVITYINSTANCE), | |
| ^ 'SELECTOR' is not defined. | |
| 565 | editform.appendChild(activity.one(SELECTOR.ACTIVITYICON).cloneNode()); | |
| ^ 'SELECTOR' is not defined. | |
| 609 | var newtitle = Y.Lang.trim(activity.one(SELECTOR.ACTIVITYFORM + ' ' + SELECTOR.ACTIVITYTITLE).get('value')); | |
| ^ 'SELECTOR' is not defined. | |
| 609 | var newtitle = Y.Lang.trim(activity.one(SELECTOR.ACTIVITYFORM + ' ' + SELECTOR.ACTIVITYTITLE).get('value')); | |
| ^ 'SELECTOR' is not defined. | |
| 621 | activity.one(SELECTOR.INSTANCENAME).setContent(response.instancename); | |
| ^ 'SELECTOR' is not defined. | |
| 654 | var editform = activity.one(SELECTOR.ACTIVITYFORM), | |
| ^ 'SELECTOR' is not defined. | |
| 668 | activity.one(SELECTOR.EDITTITLE).focus(); | |
| ^ 'SELECTOR' is not defined. | |
| 692 | buttonnode = element.one(SELECTOR.HIDE), | |
| ^ 'SELECTOR' is not defined. | |
| 700 | buttonnode = element.one(SELECTOR.SHOW); | |
| ^ 'SELECTOR' is not defined. | |
| course/yui/src/toolboxes/js/section.js | |
| 25 |Y.extend(SECTIONTOOLBOX, TOOLBOX, { | |
| ^ 'TOOLBOX' is not defined. | |
| 38 | Y.delegate('click', this.toggle_highlight, SELECTOR.PAGECONTENT, SELECTOR.SECTIONLI + ' ' + SELECTOR.HIGHLIGHT, this); | |
| ^ 'SELECTOR' is not defined. | |
| 38 | Y.delegate('click', this.toggle_highlight, SELECTOR.PAGECONTENT, SELECTOR.SECTIONLI + ' ' + SELECTOR.HIGHLIGHT, this); | |
| ^ 'SELECTOR' is not defined. | |
| 38 | Y.delegate('click', this.toggle_highlight, SELECTOR.PAGECONTENT, SELECTOR.SECTIONLI + ' ' + SELECTOR.HIGHLIGHT, this); | |
| ^ 'SELECTOR' is not defined. | |
| 41 | Y.delegate('click', this.toggle_hide_section, SELECTOR.PAGECONTENT, SELECTOR.SECTIONLI + ' ' + SELECTOR.SHOWHIDE, this); | |
| ^ 'SELECTOR' is not defined. | |
| 41 | Y.delegate('click', this.toggle_hide_section, SELECTOR.PAGECONTENT, SELECTOR.SECTIONLI + ' ' + SELECTOR.SHOWHIDE, this); | |
| ^ 'SELECTOR' is not defined. | |
| 41 | Y.delegate('click', this.toggle_hide_section, SELECTOR.PAGECONTENT, SELECTOR.SECTIONLI + ' ' + SELECTOR.SHOWHIDE, this); | |
| ^ 'SELECTOR' is not defined. | |
| 95 | var activities = section.all(SELECTOR.ACTIVITYLI); | |
| ^ 'SELECTOR' is not defined. | |
| 98 | if (node.one(SELECTOR.SHOW)) { | |
| ^ 'SELECTOR' is not defined. | |
| 99 | button = node.one(SELECTOR.SHOW); | |
| ^ 'SELECTOR' is not defined. | |
| 101 | button = node.one(SELECTOR.HIDE); | |
| ^ 'SELECTOR' is not defined. | |
| 137 | var selectedpage = Y.one(SELECTOR.PAGECONTENT); | |
| ^ 'SELECTOR' is not defined. | |
| 139 | .all(M.course.format.get_section_selector(Y) + '.current ' + SELECTOR.HIGHLIGHT) | |
| ^ 'SELECTOR' is not defined. | |
| 142 | .all(M.course.format.get_section_selector(Y) + '.current ' + SELECTOR.HIGHLIGHT + ' span') | |
| ^ 'SELECTOR' is not defined. | |
| 145 | .all(M.course.format.get_section_selector(Y) + '.current ' + SELECTOR.HIGHLIGHT + ' img') | |
| ^ 'SELECTOR' is not defined. | |
| course/yui/src/toolboxes/js/toolbox.js | |
| 12 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| 31 | SELECTOR = { | |
| ^ 'SELECTOR' is defined but never used. | |
| 55 | INDENTLIMITS = { | |
| ^ 'INDENTLIMITS' is defined but never used. | |
| 59 | BODY = Y.one(document.body); | |
| ^ 'BODY' is defined but never used. | |
| grade/report/grader/yui/src/gradereporttable/js/floatingheaders.js | |
| 253 | this.firstUserCell = Y.one(SELECTORS.USERCELL); | |
| ^ 'SELECTORS' is not defined. | |
| 254 | this.container = Y.one(SELECTORS.GRADEPARENT); | |
| ^ 'SELECTORS' is not defined. | |
| 255 | this.firstNonUserCell = Y.one(SELECTORS.GRADECELL); | |
| ^ 'SELECTORS' is not defined. | |
| 278 | this._setupFloatingLeftHeaders(SELECTORS.FOOTERTITLE); | |
| ^ 'SELECTORS' is not defined. | |
| 323 | var userCellList = Y.all(SELECTORS.USERCELL); | |
| ^ 'SELECTORS' is not defined. | |
| 470 | var userColumn = Y.all(SELECTORS.USERCELL), | |
| ^ 'SELECTORS' is not defined. | |
| 528 | this.headerRow = Y.one(SELECTORS.HEADERROW); | |
| ^ 'SELECTORS' is not defined. | |
| 529 | this.headerCell = Y.one(SELECTORS.STUDENTHEADER); | |
| ^ 'SELECTORS' is not defined. | |
| 688 | var floatingFooterRow = this.floatingHeaderRow[SELECTORS.FOOTERTITLE]; | |
| ^ 'SELECTORS' is not defined. | |
| 836 | floatingFooterTitleStyles = floatingHeaderStyles[SELECTORS.FOOTERTITLE]; | |
| ^ 'SELECTORS' is not defined. | |
| 837 | floatingFooterTitleRow = this.floatingHeaderRow[SELECTORS.FOOTERTITLE]; | |
| ^ 'SELECTORS' is not defined. | |
| 851 | floatingHeaderStyles[SELECTORS.FOOTERTITLE] = floatingFooterTitleStyles; | |
| ^ 'SELECTORS' is not defined. | |
| 932 | var userCells = Y.all(SELECTORS.USERCELL); | |
| ^ 'SELECTORS' is not defined. | |
| 944 | var resizedcells = Y.all(SELECTORS.HEADERCELLS); | |
| ^ 'SELECTORS' is not defined. | |
| 962 | var resizedavgcells = Y.all(SELECTORS.FOOTERCELLS); | |
| ^ 'SELECTORS' is not defined. | |
| grade/report/grader/yui/src/gradereporttable/js/gradereporttable.js | |
| 44 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| 44 | CSS = { | |
| ^ 'CSS' is defined but never used. | |
| grade/report/history/yui/src/userselector/js/userselector.js | |
| 47 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/editor/atto/plugins/accessibilityhelper/yui/src/button/js/button.js | |
| 60 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/editor/atto/plugins/charmap/yui/src/button/js/button.js | |
| 29 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/editor/atto/plugins/emoticon/yui/src/button/js/button.js | |
| 27 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/editor/atto/plugins/equation/yui/src/button/js/button.js | |
| 35 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/editor/atto/plugins/image/yui/src/button/js/button.js | |
| 34 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/editor/atto/plugins/link/yui/src/button/js/button.js | |
| 35 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/editor/atto/plugins/managefiles/yui/src/usedfiles/js/usedfiles.js | |
| 39 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/editor/atto/plugins/media/yui/src/button/js/button.js | |
| 35 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/editor/atto/plugins/rtl/yui/src/button/js/button.js | |
| 66 | sourceSelection = rangy.saveSelection(), | |
| ^ 'rangy' is not defined. | |
| 85 | rangy.restoreSelection(sourceSelection); | |
| ^ 'rangy' is not defined. | |
| lib/editor/atto/plugins/table/yui/src/button/js/button.js | |
| 173 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/editor/atto/yui/src/editor/js/autosave.js | |
| 167 | NOTIFY_WARNING, RECOVER_MESSAGE_TIMEOUT); | |
| ^ 'NOTIFY_WARNING' is not defined. | |
| 178 | NOTIFY_WARNING, RECOVER_MESSAGE_TIMEOUT); | |
| ^ 'NOTIFY_WARNING' is not defined. | |
| 237 | NOTIFY_INFO, RECOVER_MESSAGE_TIMEOUT); | |
| ^ 'NOTIFY_INFO' is not defined. | |
| 276 | this.showMessage(M.util.get_string('autosavefailed', 'editor_atto'), NOTIFY_WARNING, errorDuration); | |
| ^ 'NOTIFY_WARNING' is not defined. | |
| 293 | NOTIFY_INFO, SUCCESS_MESSAGE_TIMEOUT); | |
| ^ 'NOTIFY_INFO' is not defined. | |
| lib/editor/atto/yui/src/editor/js/clean.js | |
| 207 | Y.log('Using fallbackPasteCleanup for atto cleanup', 'debug', LOGNAME); | |
| ^ 'LOGNAME' is not defined. | |
| lib/editor/atto/yui/src/editor/js/editor-plugin-buttons.js | |
| 44 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/editor/atto/yui/src/editor/js/editor.js | |
| 32 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| 39 | rangy = window.rangy; | |
| ^ 'rangy' is defined but never used. | |
| lib/editor/atto/yui/src/editor/js/lintconfig.js | |
| 1 |/* globals rangy */ | |
| ^ 'rangy' is defined but never used. | |
| lib/editor/atto/yui/src/editor/js/selection.js | |
| 115 | var range = rangy.createRange(), | |
| ^ 'rangy' is not defined. | |
| 116 | selection = rangy.getSelection(); | |
| ^ 'rangy' is not defined. | |
| 142 | var range = rangy.createRange(); | |
| ^ 'rangy' is not defined. | |
| 185 | return rangy.getSelection().getAllRanges(); | |
| ^ 'rangy' is not defined. | |
| 196 | return rangy.getSelection().containsNode(node.getDOMNode(), true); | |
| ^ 'rangy' is not defined. | |
| 269 | selection = rangy.getSelection(); | |
| ^ 'rangy' is not defined. | |
| 275 | range = rangy.createRange(); | |
| ^ 'rangy' is not defined. | |
| 312 | var selection = rangy.getSelection(), | |
| ^ 'rangy' is not defined. | |
| 320 | range = rangy.createRange(); | |
| ^ 'rangy' is not defined. | |
| 358 | var selection = rangy.getSelection(); | |
| ^ 'rangy' is not defined. | |
| 372 | var selection = rangy.getSelection(); | |
| ^ 'rangy' is not defined. | |
| 384 | var selection = rangy.getSelection(), | |
| ^ 'rangy' is not defined. | |
| lib/editor/atto/yui/src/editor/js/styling.js | |
| 90 | var cssApplier = rangy.createClassApplier(classname, {normalize: true}); | |
| ^ 'rangy' is not defined. | |
| 105 | var cssApplier = rangy.createClassApplier(classname, {normalize: true}); | |
| ^ 'rangy' is not defined. | |
| lib/editor/atto/yui/src/editor/js/toolbar-keyboardnav.js | |
| 93 | Y.log("Unable to find a button to focus on", 'debug', LOGNAME); | |
| ^ 'LOGNAME' is not defined. | |
| 117 | Y.log("Unable to find the button in the list of buttons", 'debug', LOGNAME); | |
| ^ 'LOGNAME' is not defined. | |
| lib/editor/atto/yui/src/rangy/js/init.js | |
| 16 |if (!rangy.initialized) { | |
| ^ 'rangy' is not defined. | |
| 17 | rangy.init(); | |
| ^ 'rangy' is not defined. | |
| lib/editor/atto/yui/src/rangy/js/rangy-classapplier.js | |
| 207 | return moveChildrenPreservingPositions(element, element.parentNode, dom.getNodeIndex(element), true, positionsToPreserve); | |
| ^ Line is too long. | |
| 217 | return text != ""; | |
| ^ Use '!==' to compare with ''. | |
| 241 | if (el1.attributes.length != el2.attributes.length) return false; | |
| ^ Expected '{' and instead saw 'return'. | |
| 247 | if ( (attr1 === null) != (attr2 === null) ) return false; | |
| ^ Expected '{' and instead saw 'return'. | |
| 248 | if (attr1.specified != attr2.specified) return false; | |
| ^ Expected '{' and instead saw 'return'. | |
| 249 | if (attr1.specified && attr1.nodeValue !== attr2.nodeValue) return false; | |
| ^ Expected '{' and instead saw 'return'. | |
| 301 | if (node.data.length == 0) { | |
| ^ Use '===' to compare with '0'. | |
| 326 | for (i = 0; range = ranges[i++]; ) { | |
| ^ Expected a conditional expression and instead saw an assignment. | |
| 346 | if (offset == 0) { | |
| ^ Use '===' to compare with '0'. | |
| 360 | var splitAtStart = (descendantOffset == 0); | |
| ^ Use '===' to compare with '0'. | |
| 368 | if (descendantOffset == 0) { | |
| ^ Use '===' to compare with '0'. | |
| 392 | return (descendantNode == node) ? newNode : splitNodeAt(node, parentNode, dom.getNodeIndex(newNode), positionsToPreserve); | |
| ^ Line is too long. | |
| 532 | for (i = 0; propName = optionProperties[i++]; ) { | |
| ^ Expected a conditional expression and instead saw an assignment. | |
| 824 | (childNodeCount == 0 || (childNodeCount == 1 && this.isEmptyContainer(el.firstChild))); | |
| ^ Use '===' to compare with '0'. | |
| 855 | ancestorWithClass = splitNodeAt(ancestorWithClass, range.startContainer, range.startOffset, positionsToPreserve); | |
| ^ Line is too long. | |
| 1005 | if (range.collapsed || range.toString() == "") { | |
| ^ Use '===' to compare with ''. | |
| 1010 | for (var i = 0, textNode; textNode = textNodes[i++]; ) { | |
| ^ Expected '{' and instead saw 'for'. | |
| 1010 | for (var i = 0, textNode; textNode = textNodes[i++]; ) { | |
| ^ Expected a conditional expression and instead saw an assignment. | |
| 1022 | if (i == 0) { | |
| ^ Use '===' to compare with '0'. | |
| 478 | if (position.offset == firstTextNodeIndex + 1 && i < len - 1) { | |
| ^ 'len' is not defined. | |
| 736 | for (i = 0, len = merges.length; i < len; ++i) { | |
| ^ 'i' is not defined. | |
| 736 | for (i = 0, len = merges.length; i < len; ++i) { | |
| ^ 'len' is not defined. | |
| 736 | for (i = 0, len = merges.length; i < len; ++i) { | |
| ^ 'i' is not defined. | |
| 736 | for (i = 0, len = merges.length; i < len; ++i) { | |
| ^ 'len' is not defined. | |
| 736 | for (i = 0, len = merges.length; i < len; ++i) { | |
| ^ 'i' is not defined. | |
| 737 | merges[i].doMerge(positionsToPreserve); | |
| ^ 'i' is not defined. | |
| 460 | var textParts = [], combinedTextLength = 0, textNode, parent; | |
| ^ 'textNode' is defined but never used. | |
| 699 | var textNode, precedingTextNode; | |
| ^ 'textNode' is defined but never used. | |
| 788 | applyToTextNode: function(textNode, positionsToPreserve) { | |
| ^ 'positionsToPreserve' is defined but never used. | |
| lib/editor/atto/yui/src/rangy/js/rangy-core.js | |
| 618 | for (var i = 0, position; position = positionsToPreserve[i++]; ) { | |
| ^ Expected a conditional expression and instead saw an assignment. | |
| 794 | return "<" + node.nodeName + idAttr + ">[index:" + getNodeIndex(node) + ",length:" + node.childNodes.length + "][" + (node.innerHTML || "[innerHTML not supported]").slice(0, 25) + "]"; | |
| ^ Line is too long. | |
| 1012 | n.parentNode.insertBefore(node, o == 0 ? n : splitDataNode(n, o)); | |
| ^ Use '===' to compare with '0'. | |
| 1038 | for (var node, frag = getRangeDocument(iterator.range).createDocumentFragment(), subIterator; node = iterator.next(); ) { | |
| ^ Line is too long. | |
| 1038 | for (var node, frag = getRangeDocument(iterator.range).createDocumentFragment(), subIterator; node = iterator.next(); ) { | |
| ^ Expected a conditional expression and instead saw an assignment. | |
| 1058 | for (var node, subRangeIterator; node = rangeIterator.next(); ) { | |
| ^ Expected a conditional expression and instead saw an assignment. | |
| 1101 | for (var node, frag = getRangeDocument(iterator.range).createDocumentFragment(), subIterator; node = iterator.next(); ) { | |
| ^ Line is too long. | |
| 1101 | for (var node, frag = getRangeDocument(iterator.range).createDocumentFragment(), subIterator; node = iterator.next(); ) { | |
| ^ Expected a conditional expression and instead saw an assignment. | |
| 1142 | if (node == ec && isCharacterDataNode(ec) && range.endOffset == 0) { | |
| ^ Use '===' to compare with '0'. | |
| 1233 | } else { | |
| ^ Empty block. | |
| 1349 | throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: (" + range.inspect() + ")"); | |
| ^ Line is too long. | |
| 1655 | return touchingIsIntersecting ? startComparison <= 0 && endComparison >= 0 : startComparison < 0 && endComparison > 0; | |
| ^ Line is too long. | |
| 1681 | var startComparison = comparePoints(this.startContainer, this.startOffset, range.startContainer, range.startOffset), | |
| ^ Line is too long. | |
| 2066 | } else if (eo == 0) { | |
| ^ Use '===' to compare with '0'. | |
| 2090 | if (so == 0) { | |
| ^ Use '===' to compare with '0'. | |
| 2414 | } else { | |
| ^ Empty block. | |
| 2476 | return textRange.compareEndPoints("StartToEnd", textRange) == 0; | |
| ^ Use '===' to compare with '0'. | |
| 2534 | if (comparison == 0 || start == end) { | |
| ^ Use '===' to compare with '0'. | |
| 2973 | if (i == 0 && originalSelectionBackward) { | |
| ^ Use '===' to compare with '0'. | |
| 2977 | api.warn("Rangy initialization: original selection was backwards but selection has been restored forwards because the browser does not support Selection.extend"); | |
| ^ Line is too long. | |
| 3066 | throw module.createError("getSingleElementFromRange: range " + range.inspect() + " did not consist of a single element"); | |
| ^ Line is too long. | |
| 3126 | throw module.createError("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)"); | |
| ^ Line is too long. | |
| 3240 | throw module.createError("setRanges(): Element within one of the specified Ranges could not be added to control selection (does it have layout?)"); | |
| ^ Line is too long. | |
| 3250 | if (!useDocumentSelection && selectionHasAnchorAndFocus && util.areHostMethods(testSelection, ["removeAllRanges", "addRange"])) { | |
| ^ Line is too long. | |
| 3291 | // Check whether the range that we added to the selection is reflected in the last range extracted from | |
| ^ Line is too long. | |
| 3427 | updateAnchorAndFocusFromRange(sel, sel._ranges[sel.rangeCount - 1], selectionIsBackward(sel.nativeSelection)); | |
| ^ Line is too long. | |
| 3434 | } else if (selectionHasAnchorAndFocus && typeof testSelection.isCollapsed == BOOLEAN && typeof testRange.collapsed == BOOLEAN && features.implementsDomRange) { | |
| ^ Line is too long. | |
| 3706 | for (var i = 0, rangeBookmark, range; rangeBookmark = bookmark.rangeBookmarks[i++]; ) { | |
| ^ Expected a conditional expression and instead saw an assignment. | |
| 3727 | for (var i = 0, range; range = selRanges.ranges[i]; ++i) { | |
| ^ Expected a conditional expression and instead saw an assignment. | |
| 3728 | this.addRange(range, (selRanges.backward && i == 0)); | |
| ^ Use '===' to compare with '0'. | |
| 115 | autoInitialize: (typeof rangyAutoInitialize == UNDEFINED) ? true : rangyAutoInitialize | |
| ^ 'rangyAutoInitialize' is not defined. | |
| 120 | if (typeof console != UNDEFINED && isHostMethod(console, "log")) { | |
| ^ 'console' is not defined. | |
| 121 | console.log(msg); | |
| ^ 'console' is not defined. | |
| 127 | alert(msg); | |
| ^ 'alert' is not defined. | |
| 961 | api.createCoreModule("DomRange", ["DomUtil"], function(api, module) { | |
| ^ 'module' is defined but never used. | |
| 3742 | var sel, textRange; | |
| ^ 'textRange' is defined but never used. | |
| 3813 | var loadHandler = function(e) { | |
| ^ 'e' is defined but never used. | |
| lib/editor/atto/yui/src/rangy/js/rangy-highlighter.js | |
| 378 | highlightsToKeep.push( new Highlight(doc, rangeToAdd, highlights[j].classApplier, converter, null, containerElementId) ); | |
| ^ Line is too long. | |
| 379 | }); | |
| ^ Don't make functions within a loop. | |
| 391 | highlights[j] = new Highlight(doc, highlightCharRange.union(charRange), classApplier, converter, null, containerElementId); | |
| ^ Line is too long. | |
| 440 | selCharRanges.push( converter.rangeToCharacterRange(scopedRange, containerElement || getBody(range.getDocument())) ); | |
| ^ Line is too long. | |
| 596 | highlight = new Highlight(this.doc, characterRange, classApplier, this.converter, parseInt(parts[2]), containerElementId); | |
| ^ Line is too long. | |
| 16 | rangy.createModule("Highlighter", ["ClassApplier"], function(api, module) { | |
| ^ 'module' is defined but never used. | |
| lib/editor/atto/yui/src/rangy/js/rangy-selectionsaverestore.js | |
| 157 | module.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."); | |
| ^ Line is too long. | |
| lib/editor/atto/yui/src/rangy/js/rangy-serializer.js | |
| 39 | utf8CharCodes.push((c >> 6) | 192, (c & 63) | 128); | |
| ^ Unexpected use of '>>'. | |
| 39 | utf8CharCodes.push((c >> 6) | 192, (c & 63) | 128); | |
| ^ Unexpected use of '|'. | |
| 39 | utf8CharCodes.push((c >> 6) | 192, (c & 63) | 128); | |
| ^ Unexpected use of '&'. | |
| 39 | utf8CharCodes.push((c >> 6) | 192, (c & 63) | 128); | |
| ^ Unexpected use of '|'. | |
| 41 | utf8CharCodes.push((c >> 12) | 224, ((c >> 6) & 63) | 128, (c & 63) | 128); | |
| ^ Unexpected use of '>>'. | |
| 41 | utf8CharCodes.push((c >> 12) | 224, ((c >> 6) & 63) | 128, (c & 63) | 128); | |
| ^ Unexpected use of '|'. | |
| 41 | utf8CharCodes.push((c >> 12) | 224, ((c >> 6) & 63) | 128, (c & 63) | 128); | |
| ^ Unexpected use of '>>'. | |
| 41 | utf8CharCodes.push((c >> 12) | 224, ((c >> 6) & 63) | 128, (c & 63) | 128); | |
| ^ Unexpected use of '&'. | |
| 41 | utf8CharCodes.push((c >> 12) | 224, ((c >> 6) & 63) | 128, (c & 63) | 128); | |
| ^ Unexpected use of '|'. | |
| 41 | utf8CharCodes.push((c >> 12) | 224, ((c >> 6) & 63) | 128, (c & 63) | 128); | |
| ^ Unexpected use of '&'. | |
| 41 | utf8CharCodes.push((c >> 12) | 224, ((c >> 6) & 63) | 128, (c & 63) | 128); | |
| ^ Unexpected use of '|'. | |
| 55 | if ((crc & 1) == 1) { | |
| ^ Unexpected use of '&'. | |
| 56 | crc = (crc >>> 1) ^ 0xEDB88320; | |
| ^ Unexpected use of '>>>'. | |
| 56 | crc = (crc >>> 1) ^ 0xEDB88320; | |
| ^ Unexpected use of '^'. | |
| 58 | crc >>>= 1; | |
| ^ Unexpected use of '>>>='. | |
| 61 | table[i] = crc >>> 0; | |
| ^ Unexpected use of '>>>'. | |
| 76 | y = (crc ^ utf8CharCodes[i]) & 0xFF; | |
| ^ Unexpected use of '^'. | |
| 76 | y = (crc ^ utf8CharCodes[i]) & 0xFF; | |
| ^ Unexpected use of '&'. | |
| 77 | crc = (crc >>> 8) ^ crcTable[y]; | |
| ^ Unexpected use of '>>>'. | |
| 77 | crc = (crc >>> 8) ^ crcTable[y]; | |
| ^ Unexpected use of '^'. | |
| 79 | return (crc ^ -1) >>> 0; | |
| ^ Unexpected use of '^'. | |
| 79 | return (crc ^ -1) >>> 0; | |
| ^ Unexpected use of '>>>'. | |
| 284 | win.document.cookie = encodeURIComponent(cookieName) + "=" + encodeURIComponent(serialized) + expires + path + domain + secure; | |
| ^ Line is too long. | |
| lib/editor/atto/yui/src/rangy/js/rangy-textrange.js | |
| 175 | for (var i = 0, tokenRange; tokenRange = tokenRanges[i++]; ) { | |
| ^ Expected a conditional expression and instead saw an assignment. | |
| 484 | return this.store[key] = value; | |
| ^ Did you mean to return a conditional instead of an assignment? | |
| 720 | // "If the character at position is from set, append a single space (U+0020) to newdata and advance | |
| ^ Line is too long. | |
| 725 | if (offset > 1 && spaceRegex.test(text.charAt(offset - 2))) { | |
| ^ Empty block. | |
| 833 | var cacheKey = ["character", characterOptions.includeSpaceBeforeBr, characterOptions.includeBlockContentTrailingSpace, characterOptions.includePreLineTrailingSpace, ignoredChars].join("_"); | |
| ^ Line is too long. | |
| 864 | (!getPreviousPos() || previousPos.isTrailingSpace || previousPos.character == "\n" || (previousPos.character == " " && previousPos.characterType == COLLAPSIBLE_SPACE))) { | |
| ^ Line is too long. | |
| 864 | (!getPreviousPos() || previousPos.isTrailingSpace || previousPos.character == "\n" || (previousPos.character == " " && previousPos.characterType == COLLAPSIBLE_SPACE))) { | |
| ^ Empty block. | |
| 870 | } else { | |
| ^ Empty block. | |
| 884 | if (this.type == TRAILING_SPACE_BEFORE_BR && !characterOptions.includeSpaceBeforeBr) { | |
| ^ Empty block. | |
| 886 | } else if (this.type == TRAILING_SPACE_IN_BLOCK && nextPos.isTrailingSpace && !characterOptions.includeBlockContentTrailingSpace) { | |
| ^ Line is too long. | |
| 885 | } else if (this.type == TRAILING_SPACE_BEFORE_BLOCK && !characterOptions.includeSpaceBeforeBlock) { | |
| ^ Empty block. | |
| 887 | } else if (this.type == PRE_LINE_TRAILING_SPACE_BEFORE_LINE_BREAK && nextPos.type == NON_SPACE && !characterOptions.includePreLineTrailingSpace) { | |
| ^ Line is too long. | |
| 886 | } else if (this.type == TRAILING_SPACE_IN_BLOCK && nextPos.isTrailingSpace && !characterOptions.includeBlockContentTrailingSpace) { | |
| ^ Empty block. | |
| 887 | } else if (this.type == PRE_LINE_TRAILING_SPACE_BEFORE_LINE_BREAK && nextPos.type == NON_SPACE && !characterOptions.includePreLineTrailingSpace) { | |
| ^ Empty block. | |
| 890 | if (this.isTrailingSpace) { | |
| ^ Empty block. | |
| 894 | if (getPreviousPos() && previousPos.isLeadingSpace && !previousPos.isTrailingSpace && previousPos.character == "\n") { | |
| ^ Line is too long. | |
| 905 | } else { | |
| ^ Empty block. | |
| 910 | } else { | |
| ^ Empty block. | |
| 972 | if (offset == 0) { | |
| ^ Use '===' to compare with '0'. | |
| 1052 | for (var i = 0, wrapper; wrapper = wrappersByProperty[i++]; ) { | |
| ^ Expected a conditional expression and instead saw an assignment. | |
| 1541 | var moveResult = movePositionBy(session.getRangeBoundaryPosition(this, boundaryIsStart), unit, count, moveOptions.characterOptions, moveOptions.wordOptions); | |
| ^ Line is too long. | |
| 1670 | var rangeStartsBeforeNode = (dom.comparePoints(this.startContainer, this.endContainer, parent, nodeIndex) == -1); | |
| ^ Line is too long. | |
| 1740 | this.setStartAndEnd(findResult.startPos.node, findResult.startPos.offset, findResult.endPos.node, findResult.endPos.offset); | |
| ^ Line is too long. | |
| 1884 | var tokenizedTextProvider = createTokenizedTextProvider(startPos, iteratorOptions.characterOptions, iteratorOptions.wordOptions); | |
| ^ Line is too long. | |
| 83 | var lineBreakRegex = /^[\n-\r\u0085\u2028\u2029]$/; | |
| ^ 'lineBreakRegex' is defined but never used. | |
| 341 | function getLastDescendantOrSelf(node) { | |
| ^ 'getLastDescendantOrSelf' is defined but never used. | |
| 664 | getLeadingSpace: createCachingGetter("leadingSpace", function(el) { | |
| ^ 'el' is defined but never used. | |
| 1298 | function inspectBuffer(buffer) { | |
| ^ 'inspectBuffer' is defined but never used. | |
| lib/form/yui/src/dateselector/js/dateselector.js | |
| 57 | new CALENDAR(config); | |
| ^ 'CALENDAR' is not defined. | |
| 61 | new CALENDAR(config); | |
| ^ 'CALENDAR' is not defined. | |
| 80 | this.calendar = new MOODLECALENDAR({ | |
| ^ 'MOODLECALENDAR' is not defined. | |
| lib/form/yui/src/shortforms/js/shortforms.js | |
| 26 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/form/yui/src/showadvanced/js/showadvanced.js | |
| 24 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/yui/src/actionmenu/js/actionmenu.js | |
| 8 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/yui/src/blocks/js/blockregion.js | |
| 183 | return Y.Lang.isObject(value) && value instanceof MANAGER; | |
| ^ 'MANAGER' is not defined. | |
| lib/yui/src/blocks/js/blocks.js | |
| 8 |CSS = { | |
| ^ Redefinition of 'CSS'. | |
| 373 | new MANAGER(params); | |
| ^ 'MANAGER' is not defined. | |
| lib/yui/src/blocks/js/manager.js | |
| 79 | region = new BLOCKREGION({ | |
| ^ 'BLOCKREGION' is not defined. | |
| 100 | handles: [SELECTOR.DRAGHANDLE], | |
| ^ 'SELECTOR' is not defined. | |
| 300 | Y.io(M.cfg.wwwroot+AJAXURL, { | |
| ^ 'AJAXURL' is not defined. | |
| lib/yui/src/dock/js/block.js | |
| 17 |BLOCK = function() { | |
| ^ 'BLOCK' is not defined. | |
| 18 | BLOCK.superclass.constructor.apply(this, arguments); | |
| ^ 'BLOCK' is not defined. | |
| 20 |BLOCK.prototype = { | |
| ^ 'BLOCK' is not defined. | |
| 66 | Y.log('Initialised block with instance id:'+this.get('id'), 'debug', LOGNS); | |
| ^ 'LOGNS' is not defined. | |
| 124 | Y.log('Moving block to the dock:'+this.get('id'), 'debug', LOGNS); | |
| ^ 'LOGNS' is not defined. | |
| 150 | this.dockitem = new DOCKEDITEM({ | |
| ^ 'DOCKEDITEM' is not defined. | |
| 198 | Y.log('Moving block out of the dock:'+this.get('id'), 'debug', LOGNS); | |
| ^ 'LOGNS' is not defined. | |
| 219 |Y.extend(BLOCK, Y.Base, BLOCK.prototype, { | |
| ^ 'BLOCK' is not defined. | |
| 219 |Y.extend(BLOCK, Y.Base, BLOCK.prototype, { | |
| ^ 'BLOCK' is not defined. | |
| lib/yui/src/dock/js/dock.js | |
| 12 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| 35 | DOCKEDITEM; | |
| ^ 'DOCKEDITEM' is defined but never used. | |
| lib/yui/src/dock/js/dockeditem.js | |
| 18 |DOCKEDITEM = function() { | |
| ^ 'DOCKEDITEM' is not defined. | |
| 19 | DOCKEDITEM.superclass.constructor.apply(this, arguments); | |
| ^ 'DOCKEDITEM' is not defined. | |
| 21 |DOCKEDITEM.prototype = { | |
| ^ 'DOCKEDITEM' is not defined. | |
| 80 | Y.log('Initialised dockeditem for block with title "'+this._getLogDescription(), 'debug', LOGNS); | |
| ^ 'LOGNS' is not defined. | |
| 134 | Y.log('Showing '+this._getLogDescription(), 'debug', LOGNS); | |
| ^ 'LOGNS' is not defined. | |
| 159 | Y.log('Hiding "'+this._getLogDescription(), 'debug', LOGNS); | |
| ^ 'LOGNS' is not defined. | |
| 207 |Y.extend(DOCKEDITEM, Y.Base, DOCKEDITEM.prototype, { | |
| ^ 'DOCKEDITEM' is not defined. | |
| 207 |Y.extend(DOCKEDITEM, Y.Base, DOCKEDITEM.prototype, { | |
| ^ 'DOCKEDITEM' is not defined. | |
| 321 |Y.augment(DOCKEDITEM, Y.EventTarget); | |
| ^ 'DOCKEDITEM' is not defined. | |
| lib/yui/src/dock/js/panel.js | |
| 18 |DOCKPANEL = function() { | |
| ^ 'DOCKPANEL' is not defined. | |
| 19 | DOCKPANEL.superclass.constructor.apply(this, arguments); | |
| ^ 'DOCKPANEL' is not defined. | |
| 21 |DOCKPANEL.prototype = { | |
| ^ 'DOCKPANEL' is not defined. | |
| 34 | Y.log('Panel initialising', 'debug', LOGNS); | |
| ^ 'LOGNS' is not defined. | |
| 182 |Y.extend(DOCKPANEL, Y.Base, DOCKPANEL.prototype, { | |
| ^ 'DOCKPANEL' is not defined. | |
| 182 |Y.extend(DOCKPANEL, Y.Base, DOCKPANEL.prototype, { | |
| ^ 'DOCKPANEL' is not defined. | |
| 236 |Y.augment(DOCKPANEL, Y.EventTarget); | |
| ^ 'DOCKPANEL' is not defined. | |
| lib/yui/src/dock/js/tabheightmanager.js | |
| 18 |TABHEIGHTMANAGER = function() { | |
| ^ 'TABHEIGHTMANAGER' is not defined. | |
| 19 | TABHEIGHTMANAGER.superclass.constructor.apply(this, arguments); | |
| ^ 'TABHEIGHTMANAGER' is not defined. | |
| 21 |TABHEIGHTMANAGER.prototype = { | |
| ^ 'TABHEIGHTMANAGER' is not defined. | |
| 76 | Y.log('Enabling the dock tab sizer.', 'debug', LOGNS); | |
| ^ 'LOGNS' is not defined. | |
| 98 |Y.extend(TABHEIGHTMANAGER, Y.Base, TABHEIGHTMANAGER.prototype, { | |
| ^ 'TABHEIGHTMANAGER' is not defined. | |
| 98 |Y.extend(TABHEIGHTMANAGER, Y.Base, TABHEIGHTMANAGER.prototype, { | |
| ^ 'TABHEIGHTMANAGER' is not defined. | |
| lib/yui/src/formautosubmit/js/formautosubmit.js | |
| 1 |var CSS, | |
| ^ Redefinition of 'CSS'. | |
| 7 |CSS = { | |
| ^ Read only. | |
| lib/yui/src/languninstallconfirm/js/languninstallconfirm.js | |
| 24 |Confirmation.NAME = NAME; | |
| ^ 'NAME' is not defined. | |
| lib/yui/src/notification/js/ajaxexception.js | |
| 31 | this.get(BASE).addClass('moodle-dialogue-exception'); | |
| ^ 'BASE' is not defined. | |
| 65 | CSS_PREFIX : DIALOGUE_PREFIX, | |
| ^ 'DIALOGUE_PREFIX' is not defined. | |
| lib/yui/src/notification/js/alert.js | |
| 36 | 'value="'+this.get(CONFIRMYES)+'" />'), | |
| ^ 'CONFIRMYES' is not defined. | |
| 41 | this.get(BASE).addClass('moodle-dialogue-confirm'); | |
| ^ 'BASE' is not defined. | |
| 44 | '<h1 id="moodle-dialogue-'+this.get('COUNT')+'-header-text">' + this.get(TITLE) + '</h1>', Y.WidgetStdMod.REPLACE); | |
| ^ 'TITLE' is not defined. | |
| 67 | CSS_PREFIX: DIALOGUE_PREFIX, | |
| ^ 'DIALOGUE_PREFIX' is not defined. | |
| lib/yui/src/notification/js/confirm.js | |
| 65 | this.get('COUNT') + '" value="'+this.get(CONFIRMYES)+'" />'); | |
| ^ 'CONFIRMYES' is not defined. | |
| 67 | this.get('COUNT') + '" value="'+this.get(CONFIRMNO)+'" />'); | |
| ^ 'CONFIRMNO' is not defined. | |
| 68 | this._question = Y.Node.create('<div class="confirmation-message">' + this.get(QUESTION) + '</div>'); | |
| ^ 'QUESTION' is not defined. | |
| 74 | this.get(BASE).addClass('moodle-dialogue-confirm'); | |
| ^ 'BASE' is not defined. | |
| 77 | '<h1 id="moodle-dialogue-'+this.get('COUNT')+'-header-text">' + this.get(TITLE) + '</h1>', Y.WidgetStdMod.REPLACE); | |
| ^ 'TITLE' is not defined. | |
| 106 | CSS_PREFIX: DIALOGUE_PREFIX, | |
| ^ 'DIALOGUE_PREFIX' is not defined. | |
| lib/yui/src/notification/js/dialogue.js | |
| 10 | DIALOGUE_FULLSCREEN_CLASS = DIALOGUE_PREFIX + '-fullscreen', | |
| ^ 'DIALOGUE_PREFIX' is not defined. | |
| 11 | DIALOGUE_HIDDEN_CLASS = DIALOGUE_PREFIX + '-hidden', | |
| ^ 'DIALOGUE_PREFIX' is not defined. | |
| 115 | this.get(BASE).set('aria-hidden', 'true'); | |
| ^ 'BASE' is not defined. | |
| 154 | this.get(BASE).remove(true); | |
| ^ 'BASE' is not defined. | |
| 451 | var container = this.get(BASE); | |
| ^ 'BASE' is not defined. | |
| 486 | var container = this.get(BASE); | |
| ^ 'BASE' is not defined. | |
| 507 | CSS_PREFIX : DIALOGUE_PREFIX, | |
| ^ 'DIALOGUE_PREFIX' is not defined. | |
| lib/yui/src/notification/js/exception.js | |
| 47 | this.get(BASE).addClass('moodle-dialogue-exception'); | |
| ^ 'BASE' is not defined. | |
| 83 | CSS_PREFIX : DIALOGUE_PREFIX, | |
| ^ 'DIALOGUE_PREFIX' is not defined. | |
| lib/yui/src/notification/js/info.js | |
| 26 | CSS_PREFIX: DIALOGUE_PREFIX | |
| ^ 'DIALOGUE_PREFIX' is not defined. | |
| lib/yui/src/notification/js/shared.js | |
| 7 | CSS; | |
| ^ Redefinition of 'CSS'. | |
| 15 |CSS = { | |
| ^ Read only. | |
| 24 |}; | |
| ^ Expected an assignment or function call and instead saw an expression. | |
| lib/yui/src/popuphelp/js/popuphelp.js | |
| 23 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| lib/yui/src/tooltip/js/tooltip.js | |
| 36 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| message/output/airnotifier/yui/src/toolboxes/js/toolboxes.js | |
| 8 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| message/yui/src/messenger/js/constants.js | |
| 33 |var CSSR = {}; | |
| ^ 'CSSR' is defined but never used. | |
| 40 |var SELECTORS = {}; | |
| ^ 'SELECTORS' is defined but never used. | |
| message/yui/src/messenger/js/manager.js | |
| 25 |SELECTORS.MANAGER = { | |
| ^ 'SELECTORS' is not defined. | |
| 114 | this._events.push(Y.delegate('click', captureEvent, 'body', SELECTORS.MANAGER.SENDMESSAGE, this)); | |
| ^ 'SELECTORS' is not defined. | |
| 115 | this._events.push(Y.one(Y.config.doc).delegate('key', captureEvent, 'space', SELECTORS.MANAGER.SENDMESSAGE, this)); | |
| ^ 'SELECTORS' is not defined. | |
| message/yui/src/messenger/js/sendmessage.js | |
| 25 |CSSR.SENDMSGDIALOG = { | |
| ^ 'CSSR' is not defined. | |
| 40 |SELECTORS.SENDMSGDIALOG = { | |
| ^ 'SELECTORS' is not defined. | |
| 95 | CSSR: CSSR.SENDMSGDIALOG, | |
| ^ 'CSSR' is not defined. | |
| 130 | this._bb.one(SELECTORS.SENDMSGDIALOG.HISTORYLINK) | |
| ^ 'SELECTORS' is not defined. | |
| 134 | this._bb.one(SELECTORS.SENDMSGDIALOG.INPUT).set('value', ''); | |
| ^ 'SELECTORS' is not defined. | |
| 246 | this._bb.one(SELECTORS.SENDMSGDIALOG.NOTICEAREA).hide(); | |
| ^ 'SELECTORS' is not defined. | |
| 256 | this._bb.one(SELECTORS.SENDMSGDIALOG.NOTICE).setHTML(html); | |
| ^ 'SELECTORS' is not defined. | |
| 257 | this._bb.one(SELECTORS.SENDMSGDIALOG.NOTICEAREA).show(); | |
| ^ 'SELECTORS' is not defined. | |
| 284 | this._bb.one(SELECTORS.SENDMSGDIALOG.FORM).on('submit', function(e) { | |
| ^ 'SELECTORS' is not defined. | |
| 285 | var message = this._bb.one(SELECTORS.SENDMSGDIALOG.INPUT).get('value'); | |
| ^ 'SELECTORS' is not defined. | |
| 314 | CSS_PREFIX: CSSR.SENDMSGDIALOG.PREFIX, | |
| ^ 'CSSR' is not defined. | |
| message/yui/src/toolbox/js/delete.js | |
| 25 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| mod/assign/feedback/editpdf/yui/src/editor/js/annotation.js | |
| 173 | drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION), | |
| ^ 'SELECTOR' is not defined. | |
| 174 | offsetcanvas = this.editor.get_dialogue_element(SELECTOR.DRAWINGCANVAS).getXY(), | |
| ^ 'SELECTOR' is not defined. | |
| 188 | weight: STROKEWEIGHT, | |
| ^ 'STROKEWEIGHT' is not defined. | |
| 189 | color: SELECTEDBORDERCOLOUR | |
| ^ 'SELECTEDBORDERCOLOUR' is not defined. | |
| 192 | color: SELECTEDFILLCOLOUR | |
| ^ 'SELECTEDFILLCOLOUR' is not defined. | |
| mod/assign/feedback/editpdf/yui/src/editor/js/annotationhighlight.js | |
| 55 | highlightcolour = ANNOTATIONCOLOUR[this.colour]; | |
| ^ 'ANNOTATIONCOLOUR' is not defined. | |
| 102 | highlightcolour = ANNOTATIONCOLOUR[edit.annotationcolour]; | |
| ^ 'ANNOTATIONCOLOUR' is not defined. | |
| mod/assign/feedback/editpdf/yui/src/editor/js/annotationline.js | |
| 53 | weight: STROKEWEIGHT, | |
| ^ 'STROKEWEIGHT' is not defined. | |
| 54 | color: ANNOTATIONCOLOUR[this.colour] | |
| ^ 'ANNOTATIONCOLOUR' is not defined. | |
| 82 | weight: STROKEWEIGHT, | |
| ^ 'STROKEWEIGHT' is not defined. | |
| 83 | color: ANNOTATIONCOLOUR[edit.annotationcolour] | |
| ^ 'ANNOTATIONCOLOUR' is not defined. | |
| mod/assign/feedback/editpdf/yui/src/editor/js/annotationoval.js | |
| 59 | weight: STROKEWEIGHT, | |
| ^ 'STROKEWEIGHT' is not defined. | |
| 60 | color: ANNOTATIONCOLOUR[this.colour] | |
| ^ 'ANNOTATIONCOLOUR' is not defined. | |
| 100 | weight: STROKEWEIGHT, | |
| ^ 'STROKEWEIGHT' is not defined. | |
| 101 | color: ANNOTATIONCOLOUR[edit.annotationcolour] | |
| ^ 'ANNOTATIONCOLOUR' is not defined. | |
| mod/assign/feedback/editpdf/yui/src/editor/js/annotationpen.js | |
| 56 | weight: STROKEWEIGHT, | |
| ^ 'STROKEWEIGHT' is not defined. | |
| 57 | color: ANNOTATIONCOLOUR[this.colour] | |
| ^ 'ANNOTATIONCOLOUR' is not defined. | |
| 99 | weight: STROKEWEIGHT, | |
| ^ 'STROKEWEIGHT' is not defined. | |
| 100 | color: ANNOTATIONCOLOUR[edit.annotationcolour] | |
| ^ 'ANNOTATIONCOLOUR' is not defined. | |
| mod/assign/feedback/editpdf/yui/src/editor/js/annotationrectangle.js | |
| 59 | weight: STROKEWEIGHT, | |
| ^ 'STROKEWEIGHT' is not defined. | |
| 60 | color: ANNOTATIONCOLOUR[this.colour] | |
| ^ 'ANNOTATIONCOLOUR' is not defined. | |
| 100 | weight: STROKEWEIGHT, | |
| ^ 'STROKEWEIGHT' is not defined. | |
| 101 | color: ANNOTATIONCOLOUR[edit.annotationcolour] | |
| ^ 'ANNOTATIONCOLOUR' is not defined. | |
| mod/assign/feedback/editpdf/yui/src/editor/js/annotationstamp.js | |
| 45 | drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION), | |
| ^ 'SELECTOR' is not defined. | |
| 87 | drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION), | |
| ^ 'SELECTOR' is not defined. | |
| mod/assign/feedback/editpdf/yui/src/editor/js/comment.js | |
| 203 | }); | |
| ^ Expected an assignment or function call and instead saw an expression. | |
| 162 | drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION), | |
| ^ 'SELECTOR' is not defined. | |
| 188 | backgroundColor: COMMENTCOLOUR[this.colour], | |
| ^ 'COMMENTCOLOUR' is not defined. | |
| 189 | color: COMMENTTEXTCOLOUR | |
| ^ 'COMMENTTEXTCOLOUR' is not defined. | |
| 399 | color: COMMENTCOLOUR[edit.commentcolour] | |
| ^ 'COMMENTCOLOUR' is not defined. | |
| mod/assign/feedback/editpdf/yui/src/editor/js/commentsearch.js | |
| 78 | filternode = Y.one('#' + dialogueid + SELECTOR.SEARCHFILTER); | |
| ^ 'SELECTOR' is not defined. | |
| 79 | commentslist = Y.one('#' + dialogueid + SELECTOR.SEARCHCOMMENTSLIST); | |
| ^ 'SELECTOR' is not defined. | |
| mod/assign/feedback/editpdf/yui/src/editor/js/drawable.js | |
| 103 | drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION); | |
| ^ 'SELECTOR' is not defined. | |
| mod/assign/feedback/editpdf/yui/src/editor/js/editor.js | |
| 222 | button = this.get_dialogue_element(SELECTOR.COMMENTCOLOURBUTTON); | |
| ^ 'SELECTOR' is not defined. | |
| 233 | button = this.get_dialogue_element(SELECTOR.ANNOTATIONCOLOURBUTTON); | |
| ^ 'SELECTOR' is not defined. | |
| 237 | currenttoolnode = this.get_dialogue_element(TOOLSELECTOR[this.currentedit.tool]); | |
| ^ 'TOOLSELECTOR' is not defined. | |
| 241 | button = this.get_dialogue_element(SELECTOR.STAMPSBUTTON); | |
| ^ 'SELECTOR' is not defined. | |
| 252 | var canvas = this.get_dialogue_element(SELECTOR.DRAWINGCANVAS), | |
| ^ 'SELECTOR' is not defined. | |
| 311 | this.loadingicon = this.get_dialogue_element(SELECTOR.LOADINGICON); | |
| ^ 'SELECTOR' is not defined. | |
| 313 | drawingcanvas = this.get_dialogue_element(SELECTOR.DRAWINGCANVAS); | |
| ^ 'SELECTOR' is not defined. | |
| 316 | drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION); | |
| ^ 'SELECTOR' is not defined. | |
| 347 | var ajaxurl = AJAXBASE, | |
| ^ 'AJAXBASE' is not defined. | |
| 396 | var progressbarcontainer = this.get_dialogue_element(SELECTOR.PROGRESSBARCONTAINER); | |
| ^ 'SELECTOR' is not defined. | |
| 407 | Y.io(AJAXBASEPROGRESS, checkconversionstatus); | |
| ^ 'AJAXBASEPROGRESS' is not defined. | |
| 417 | Y.io(AJAXBASEPROGRESS, checkconversionstatus); | |
| ^ 'AJAXBASEPROGRESS' is not defined. | |
| 428 | Y.io(AJAXBASEPROGRESS, checkconversionstatus); | |
| ^ 'AJAXBASEPROGRESS' is not defined. | |
| 523 | searchcommentsbutton = this.get_dialogue_element(SELECTOR.SEARCHCOMMENTSBUTTON); | |
| ^ 'SELECTOR' is not defined. | |
| 531 | Y.each(TOOLSELECTOR, function(selector, tool) { | |
| ^ 'TOOLSELECTOR' is not defined. | |
| 540 | commentcolourbutton = this.get_dialogue_element(SELECTOR.COMMENTCOLOURBUTTON); | |
| ^ 'SELECTOR' is not defined. | |
| 543 | colours: COMMENTCOLOUR, | |
| ^ 'COMMENTCOLOUR' is not defined. | |
| 556 | annotationcolourbutton = this.get_dialogue_element(SELECTOR.ANNOTATIONCOLOURBUTTON); | |
| ^ 'SELECTOR' is not defined. | |
| 560 | colours: ANNOTATIONCOLOUR, | |
| ^ 'ANNOTATIONCOLOUR' is not defined. | |
| 578 | this.get_dialogue_element(TOOLSELECTOR.stamp).ancestor().hide(); | |
| ^ 'TOOLSELECTOR' is not defined. | |
| 582 | currentstampbutton = this.get_dialogue_element(SELECTOR.STAMPSBUTTON); | |
| ^ 'SELECTOR' is not defined. | |
| 615 | currenttoolnode = this.get_dialogue_element(TOOLSELECTOR[this.currentedit.tool]); | |
| ^ 'TOOLSELECTOR' is not defined. | |
| 705 | var canvas = this.get_dialogue_element(SELECTOR.DRAWINGCANVAS), | |
| ^ 'SELECTOR' is not defined. | |
| 776 | canvas = this.get_dialogue_element(SELECTOR.DRAWINGCANVAS), | |
| ^ 'SELECTOR' is not defined. | |
| 816 | if (duration < CLICKTIMEOUT || this.currentedit.start === false) { | |
| ^ 'CLICKTIMEOUT' is not defined. | |
| 873 | drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION); | |
| ^ 'SELECTOR' is not defined. | |
| 909 | var ajaxurl = AJAXBASE, | |
| ^ 'AJAXBASE' is not defined. | |
| 933 | Y.one('#' + this.get('linkid')).siblings(SELECTOR.UNSAVEDCHANGESDIV) | |
| ^ 'SELECTOR' is not defined. | |
| 998 | var drawingcanvas = this.get_dialogue_element(SELECTOR.DRAWINGCANVAS), | |
| ^ 'SELECTOR' is not defined. | |
| 1003 | previousbutton = this.get_dialogue_element(SELECTOR.PREVIOUSBUTTON); | |
| ^ 'SELECTOR' is not defined. | |
| 1004 | nextbutton = this.get_dialogue_element(SELECTOR.NEXTBUTTON); | |
| ^ 'SELECTOR' is not defined. | |
| 1024 | this.get_dialogue_element(SELECTOR.PAGESELECT).set('value', this.currentpage); | |
| ^ 'SELECTOR' is not defined. | |
| 1042 | pageselect = this.get_dialogue_element(SELECTOR.PAGESELECT); | |
| ^ 'SELECTOR' is not defined. | |
| 1059 | previousbutton = this.get_dialogue_element(SELECTOR.PREVIOUSBUTTON); | |
| ^ 'SELECTOR' is not defined. | |
| 1060 | nextbutton = this.get_dialogue_element(SELECTOR.NEXTBUTTON); | |
| ^ 'SELECTOR' is not defined. | |
| 1104 | drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION); | |
| ^ 'SELECTOR' is not defined. | |
| mod/assign/feedback/editpdf/yui/src/editor/js/globals.js | |
| 23 | CSS = { | |
| ^ Redefinition of 'CSS'. | |
| 21 |var AJAXBASE = M.cfg.wwwroot + '/mod/assign/feedback/editpdf/ajax.php', | |
| ^ 'AJAXBASE' is defined but never used. | |
| 22 | AJAXBASEPROGRESS = M.cfg.wwwroot + '/mod/assign/feedback/editpdf/ajax_progress.php', | |
| ^ 'AJAXBASEPROGRESS' is defined but never used. | |
| 26 | SELECTOR = { | |
| ^ 'SELECTOR' is defined but never used. | |
| 46 | SELECTEDBORDERCOLOUR = 'rgba(200, 200, 255, 0.9)', | |
| ^ 'SELECTEDBORDERCOLOUR' is defined but never used. | |
| 47 | SELECTEDFILLCOLOUR = 'rgba(200, 200, 255, 0.5)', | |
| ^ 'SELECTEDFILLCOLOUR' is defined but never used. | |
| 48 | COMMENTTEXTCOLOUR = 'rgb(51, 51, 51)', | |
| ^ 'COMMENTTEXTCOLOUR' is defined but never used. | |
| 49 | COMMENTCOLOUR = { | |
| ^ 'COMMENTCOLOUR' is defined but never used. | |
| 57 | ANNOTATIONCOLOUR = { | |
| ^ 'ANNOTATIONCOLOUR' is defined but never used. | |
| 65 | CLICKTIMEOUT = 300, | |
| ^ 'CLICKTIMEOUT' is defined but never used. | |
| 66 | TOOLSELECTOR = { | |
| ^ 'TOOLSELECTOR' is defined but never used. | |
| 76 | STROKEWEIGHT = 4; | |
| ^ 'STROKEWEIGHT' is defined but never used. | |
| mod/assign/feedback/editpdf/yui/src/editor/js/quickcommentlist.js | |
| 53 | var ajaxurl = AJAXBASE, | |
| ^ 'AJAXBASE' is not defined. | |
| 109 | var ajaxurl = AJAXBASE, | |
| ^ 'AJAXBASE' is not defined. | |
| 155 | var ajaxurl = AJAXBASE, | |
| ^ 'AJAXBASE' is not defined. | |
| mod/assign/yui/src/history/js/history.js | |
| 3 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| mod/quiz/yui/src/dragdrop/js/dragdrop.js | |
| 7 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| 7 |var CSS = { | |
| ^ 'CSS' is defined but never used. | |
| 31 |SELECTOR = { | |
| ^ 'SELECTOR' is defined but never used. | |
| mod/quiz/yui/src/dragdrop/js/resource.js | |
| 134 | var previousslot = dragnode.previous(SELECTOR.SLOT); | |
| ^ 'SELECTOR' is not defined. | |
| 139 | var previouspage = dragnode.previous(SELECTOR.PAGE); | |
| ^ 'SELECTOR' is not defined. | |
| mod/quiz/yui/src/questionchooser/js/questionchooser.js | |
| 1 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| mod/quiz/yui/src/quizquestionbank/js/quizquestionbank.js | |
| 25 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| mod/quiz/yui/src/randomquestion/js/randomquestion.js | |
| 25 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| mod/quiz/yui/src/repaginate/js/repaginate.js | |
| 25 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| mod/quiz/yui/src/toolboxes/js/resource.js | |
| 27 |Y.extend(RESOURCETOOLBOX, TOOLBOX, { | |
| ^ 'TOOLBOX' is not defined. | |
| 63 | Y.delegate('click', this.handle_data_action, BODY, SELECTOR.ACTIVITYACTION, this); | |
| ^ 'BODY' is not defined. | |
| 63 | Y.delegate('click', this.handle_data_action, BODY, SELECTOR.ACTIVITYACTION, this); | |
| ^ 'SELECTOR' is not defined. | |
| 64 | Y.delegate('click', this.handle_data_action, BODY, SELECTOR.DEPENDENCY_LINK, this); | |
| ^ 'BODY' is not defined. | |
| 64 | Y.delegate('click', this.handle_data_action, BODY, SELECTOR.DEPENDENCY_LINK, this); | |
| ^ 'SELECTOR' is not defined. | |
| 81 | node = node.ancestor(SELECTOR.ACTIVITYACTION); | |
| ^ 'SELECTOR' is not defined. | |
| 87 | activity = node.ancestor(SELECTOR.ACTIVITYLI); | |
| ^ 'SELECTOR' is not defined. | |
| 130 | var actionarea = activity.one(SELECTOR.ACTIONAREA); | |
| ^ 'SELECTOR' is not defined. | |
| 204 | var instancemaxmark = activity.one(SELECTOR.INSTANCEMAXMARK), | |
| ^ 'SELECTOR' is not defined. | |
| 205 | instance = activity.one(SELECTOR.ACTIVITYINSTANCE), | |
| ^ 'SELECTOR' is not defined. | |
| 284 | var newmaxmark = Y.Lang.trim(activity.one(SELECTOR.ACTIVITYFORM + ' ' + SELECTOR.ACTIVITYMAXMARK).get('value')); | |
| ^ 'SELECTOR' is not defined. | |
| 284 | var newmaxmark = Y.Lang.trim(activity.one(SELECTOR.ACTIVITYFORM + ' ' + SELECTOR.ACTIVITYMAXMARK).get('value')); | |
| ^ 'SELECTOR' is not defined. | |
| 287 | activity.one(SELECTOR.INSTANCEMAXMARK).setContent(newmaxmark); | |
| ^ 'SELECTOR' is not defined. | |
| 297 | activity.one(SELECTOR.INSTANCEMAXMARK).setContent(response.instancemaxmark); | |
| ^ 'SELECTOR' is not defined. | |
| 330 | var editform = activity.one(SELECTOR.ACTIVITYFORM), | |
| ^ 'SELECTOR' is not defined. | |
| 344 | activity.one(SELECTOR.EDITMAXMARK).focus(); | |
| ^ 'SELECTOR' is not defined. | |
| mod/quiz/yui/src/toolboxes/js/section.js | |
| 25 |Y.extend(SECTIONTOOLBOX, TOOLBOX, { | |
| ^ 'TOOLBOX' is not defined. | |
| 48 | BODY.delegate('key', this.handle_data_action, 'down:enter', SELECTOR.ACTIVITYACTION, this); | |
| ^ 'BODY' is not defined. | |
| 48 | BODY.delegate('key', this.handle_data_action, 'down:enter', SELECTOR.ACTIVITYACTION, this); | |
| ^ 'SELECTOR' is not defined. | |
| 49 | Y.delegate('click', this.handle_data_action, BODY, SELECTOR.ACTIVITYACTION, this); | |
| ^ 'BODY' is not defined. | |
| 49 | Y.delegate('click', this.handle_data_action, BODY, SELECTOR.ACTIVITYACTION, this); | |
| ^ 'SELECTOR' is not defined. | |
| 50 | Y.delegate('change', this.handle_data_action, BODY, SELECTOR.EDITSHUFFLEQUESTIONSACTION, this); | |
| ^ 'BODY' is not defined. | |
| 50 | Y.delegate('change', this.handle_data_action, BODY, SELECTOR.EDITSHUFFLEQUESTIONSACTION, this); | |
| ^ 'SELECTOR' is not defined. | |
| 67 | node = node.ancestor(SELECTOR.ACTIVITYACTION); | |
| ^ 'SELECTOR' is not defined. | |
| 73 | activity = node.ancestor(SELECTOR.ACTIVITYLI); | |
| ^ 'SELECTOR' is not defined. | |
| 123 | var spinner = M.util.add_spinner(Y, activity.one(SELECTOR.ACTIONAREA)); | |
| ^ 'SELECTOR' is not defined. | |
| 152 | instancesection = activity.one(SELECTOR.INSTANCESECTION), | |
| ^ 'SELECTOR' is not defined. | |
| 210 | var newtext = Y.Lang.trim(activity.one(SELECTOR.SECTIONFORM + ' ' + SELECTOR.SECTIONINPUT).get('value')); | |
| ^ 'SELECTOR' is not defined. | |
| 210 | var newtext = Y.Lang.trim(activity.one(SELECTOR.SECTIONFORM + ' ' + SELECTOR.SECTIONINPUT).get('value')); | |
| ^ 'SELECTOR' is not defined. | |
| 211 | var spinner = M.util.add_spinner(Y, activity.one(SELECTOR.INSTANCESECTIONAREA)); | |
| ^ 'SELECTOR' is not defined. | |
| 214 | activity.one(SELECTOR.INSTANCESECTION).setContent(newtext); | |
| ^ 'SELECTOR' is not defined. | |
| 223 | activity.one(SELECTOR.INSTANCESECTION).setContent(response.instancesection); | |
| ^ 'SELECTOR' is not defined. | |
| 224 | activity.one(SELECTOR.EDITSECTIONICON).set('title', | |
| ^ 'SELECTOR' is not defined. | |
| 226 | activity.one(SELECTOR.EDITSECTIONICON).set('alt', | |
| ^ 'SELECTOR' is not defined. | |
| 228 | var deleteicon = activity.one(SELECTOR.DELETESECTIONICON); | |
| ^ 'SELECTOR' is not defined. | |
| 265 | var editform = activity.one(SELECTOR.SECTIONFORM), | |
| ^ 'SELECTOR' is not defined. | |
| 276 | activity.one(SELECTOR.EDITSECTION).focus(); | |
| ^ 'SELECTOR' is not defined. | |
| 300 | if (activity.one(SELECTOR.EDITSHUFFLEQUESTIONSACTION).get('checked')) { | |
| ^ 'SELECTOR' is not defined. | |
| 318 | var spinner = M.util.add_spinner(Y, activity.one(SELECTOR.EDITSHUFFLEAREA)); | |
| ^ 'SELECTOR' is not defined. | |
| mod/quiz/yui/src/toolboxes/js/toolbox.js | |
| 12 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| 69 | BODY = Y.one(document.body); | |
| ^ 'BODY' is defined but never used. | |
| question/type/ddimageortext/yui/src/form/js/form.js | |
| 152 | }, this); | |
| ^ Don't make functions within a loop. | |
| report/loglive/yui/src/fetchlogs/js/fetchlogs.js | |
| 19 |var CSS = { | |
| ^ Redefinition of 'CSS'. | |
| >> 476 errors in 204 files | |
| Warning: Task "jshint:files" failed. Use --force to continue. | |
| Aborted due to warnings. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment