# HG changeset patch # User Nicholas Jillings # Date 1450357419 0 # Node ID 502f22d1dbc311a10e7125b53d01508be3a4cf59 # Parent 930354145f6c4dc1e3d4f588595ccb1d25eff0ca Bug #1486: Fixed rogue '+' appearing in move slider alert. Unlabelled axis have default of 'Axis ' and their index. diff -r 930354145f6c -r 502f22d1dbc3 ape.js --- a/ape.js Thu Dec 17 11:11:57 2015 +0000 +++ b/ape.js Thu Dec 17 13:03:39 2015 +0000 @@ -60,10 +60,15 @@ } if (interfaceTID.length != 0) { - str += 'On axis "'+this.interfaceSliders[i].interfaceObject.title+'" you must move '; + var interfaceName = this.interfaceSliders[i].interfaceObject.title; + if (interfaceName == undefined) { + str += 'On axis '+String(i+1)+' you must move '; + } else { + str += 'On axis "'+interfaceName+'" you must move '; + } if (interfaceTID.length == 1) { - str += 'slider +'+interfaceTID[0]+'. '; + str += 'slider '+interfaceTID[0]+'. '; } else { str += 'sliders '; @@ -449,6 +454,8 @@ if (interfaceObject.title != undefined && typeof interfaceObject.title == "string") { titleSpan.textContent = interfaceObject.title; + } else { + titleSpan.textContent = "Axis "+String(this.id+1); } pagetitle.appendChild(titleSpan); this.sliderDOM.appendChild(pagetitle); diff -r 930354145f6c -r 502f22d1dbc3 example_eval/project.xml --- a/example_eval/project.xml Thu Dec 17 11:11:57 2015 +0000 +++ b/example_eval/project.xml Thu Dec 17 13:03:39 2015 +0000 @@ -35,7 +35,6 @@ - Preference Min Max Middle