diff --git a/activemq-web-console/src/main/webapp/js/css.js b/activemq-web-console/src/main/webapp/js/css.js index ec8d27880c..c373e28076 100644 --- a/activemq-web-console/src/main/webapp/js/css.js +++ b/activemq-web-console/src/main/webapp/js/css.js @@ -133,7 +133,7 @@ var css = { removeClassFromElement: function(el, classString) { var classArray = this.privateGetClassArray(el); - for (x in classArray) { + for (let x in classArray) { if (classString == classArray[x]) { classArray[x] = ''; break; diff --git a/activemq-web-console/src/main/webapp/js/plotkit/SVG.js b/activemq-web-console/src/main/webapp/js/plotkit/SVG.js index ce2427cc4c..26376374c1 100644 --- a/activemq-web-console/src/main/webapp/js/plotkit/SVG.js +++ b/activemq-web-console/src/main/webapp/js/plotkit/SVG.js @@ -536,7 +536,7 @@ PlotKit.SVGRenderer.prototype._renderPieAxis = function() { } else { var label = this.createSVGElement("text", svgattrib); - label.appendChild(this.document.createTextNode(this.layout.xticks[i][1])) + label.appendChild(this.document.createTextNode(this.layout.xticks[i][1])); this.root.appendChild(label); } } @@ -668,7 +668,7 @@ PlotKit.SVGRenderer.isSupported = function() { */ if (operaVersion && (operaVersion[1] > 8.9)) - return true + return true; if (mozillaVersion && (mozillaVersion > 1.7)) return true; diff --git a/activemq-web-console/src/main/webapp/js/plotkit/SweetCanvas.js b/activemq-web-console/src/main/webapp/js/plotkit/SweetCanvas.js index 07492ae847..71f6fef458 100644 --- a/activemq-web-console/src/main/webapp/js/plotkit/SweetCanvas.js +++ b/activemq-web-console/src/main/webapp/js/plotkit/SweetCanvas.js @@ -20,7 +20,7 @@ try { } } catch (e) { - throw "SweetCanvas depends on MochiKit.{Base,Color,DOM,Format} and PlotKit.{Layout, Canvas}" + throw "SweetCanvas depends on MochiKit.{Base,Color,DOM,Format} and PlotKit.{Layout, Canvas}"; } diff --git a/activemq-web-console/src/main/webapp/js/plotkit/SweetSVG.js b/activemq-web-console/src/main/webapp/js/plotkit/SweetSVG.js index 6fd6d479c9..fdc2bebf3d 100644 --- a/activemq-web-console/src/main/webapp/js/plotkit/SweetSVG.js +++ b/activemq-web-console/src/main/webapp/js/plotkit/SweetSVG.js @@ -21,7 +21,7 @@ try { } } catch (e) { - throw "SweetSVG depends on MochiKit.{Base,Color,DOM,Format} and PlotKit.{Layout, SVG}" + throw "SweetSVG depends on MochiKit.{Base,Color,DOM,Format} and PlotKit.{Layout, SVG}"; } diff --git a/activemq-web-demo/src/main/webapp/js/amq.js b/activemq-web-demo/src/main/webapp/js/amq.js index 773719b552..33fa9f62c2 100644 --- a/activemq-web-demo/src/main/webapp/js/amq.js +++ b/activemq-web-demo/src/main/webapp/js/amq.js @@ -245,7 +245,7 @@ org.activemq.Amq = function() { // we need to ensure that messages which set headers are sent by themselves. // if 2 'listen' messages were sent together, and a 'selector' header were added to one of them, // AMQ would add the selector to both 'listen' commands. - for(i=0;i 0) { // TODO more encoding? - text = text.replace('<', '<'); - text = text.replace('>', '>'); + text = text.replace(//g, '>'); amq.sendMessage(chatTopic, '' + text + ''); } diff --git a/activemq-web-demo/src/main/webapp/mqtt/chat.js b/activemq-web-demo/src/main/webapp/mqtt/chat.js index 8b09c2e792..92eac1124d 100644 --- a/activemq-web-demo/src/main/webapp/mqtt/chat.js +++ b/activemq-web-demo/src/main/webapp/mqtt/chat.js @@ -62,7 +62,7 @@ $(document).ready(function(){ $('#send_form').submit(function() { var text = $('#send_form_input').val(); if (text) { - message = new Messaging.Message(text); + let message = new Messaging.Message(text); message.destinationName = destination; client.send(message); $('#send_form_input').val(""); diff --git a/activemq-web-demo/src/main/webapp/portfolio/portfolio.js b/activemq-web-demo/src/main/webapp/portfolio/portfolio.js index 8abe6f4036..4ea99c751e 100644 --- a/activemq-web-demo/src/main/webapp/portfolio/portfolio.js +++ b/activemq-web-demo/src/main/webapp/portfolio/portfolio.js @@ -74,7 +74,7 @@ function fixedDigits(t, digits) { * Find direct child of an element, by id. */ function find(t, id) { - for (i = 0; i < t.childNodes.length; i++) { + for (let i = 0; i < t.childNodes.length; i++) { var child = t.childNodes[i] if (child.id == id) { return child diff --git a/activemq-web/src/main/resources/org/apache/activemq/web/behaviour.js b/activemq-web/src/main/resources/org/apache/activemq/web/behaviour.js index 90cf5ea6d3..9be5498fd9 100644 --- a/activemq-web/src/main/resources/org/apache/activemq/web/behaviour.js +++ b/activemq-web/src/main/resources/org/apache/activemq/web/behaviour.js @@ -51,15 +51,15 @@ var Behaviour = { }, apply : function(){ - for (var h=0;sheet=Behaviour.list[h];h++){ - for (selector in sheet){ - list = document.getElementsBySelector(selector); + for (let h = 0; sheet = Behaviour.list[h]; h++) { + for (let selector in sheet) { + let list = document.getElementsBySelector(selector); - if (!list){ + if (!list) { continue; } - for (var i=0;element=list[i];i++){ + for (let i = 0; element = list[i]; i++) { sheet[selector](element); } } @@ -119,7 +119,7 @@ document.getElementsBySelector = function(selector) { var tokens = selector.split(' '); var currentContext = new Array(document); for (var i = 0; i < tokens.length; i++) { - token = tokens[i].replace(/^\s+/,'').replace(/\s+$/,'');; + let token = tokens[i].replace(/^\s+/,'').replace(/\s+$/,''); if (token.indexOf('#') > -1) { // Token is an ID selector var bits = token.split('#'); diff --git a/assembly/src/release/examples/conf/camel.xml b/assembly/src/release/examples/conf/camel.xml index baa3d97b39..172aa0637c 100644 --- a/assembly/src/release/examples/conf/camel.xml +++ b/assembly/src/release/examples/conf/camel.xml @@ -16,7 +16,7 @@ -->