comparison js/core.js @ 2607:342ef7948c47

#37. All interfaces use interfaceContext.getLabel to generate labels
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Mon, 14 Nov 2016 16:12:34 +0000
parents 8188efa9415d
children 756d12f5c330
comparison
equal deleted inserted replaced
2606:ac9b08b961c0 2607:342ef7948c47
3266 } 3266 }
3267 switch (labelType) { 3267 switch (labelType) {
3268 case "letter": 3268 case "letter":
3269 return String.fromCharCode((index + offset) % 26 + 97); 3269 return String.fromCharCode((index + offset) % 26 + 97);
3270 case "capital": 3270 case "capital":
3271 return String.fromCharCode((index + offset) % 26 + 66); 3271 return String.fromCharCode((index + offset) % 26 + 65);
3272 case "number": 3272 case "number":
3273 return String(index + offset); 3273 return String(index + offset);
3274 default: 3274 default:
3275 return ""; 3275 return "";
3276 } 3276 }