renamed the helper renderer to _..., as per private naming convention

This commit is contained in:
Manuel Friedli 2014-06-26 16:01:42 +02:00
parent 8234d4f3ea
commit 57556987ac

6
uhr.js
View file

@ -292,7 +292,7 @@ UhrRenderer.prototype.render = function(uhr, beforeshow) {
if (this.layout.version !== undefined) { if (this.layout.version !== undefined) {
switch (this.layout.version) { switch (this.layout.version) {
case 2: case 2:
var delegate = new UhrRendererV2Delegate(this.layout); var delegate = new _UhrRendererV2Delegate(this.layout);
letters = delegate.parse(); letters = delegate.parse();
break; break;
default: default:
@ -320,7 +320,7 @@ UhrRenderer.prototype.render = function(uhr, beforeshow) {
}); });
}; };
function UhrRendererV2Delegate(layout) { function _UhrRendererV2Delegate(layout) {
this.layout = layout; this.layout = layout;
this._parseArrayOrObject = function(letters, styleClass, input) { this._parseArrayOrObject = function(letters, styleClass, input) {
if (Array.isArray(input)) { if (Array.isArray(input)) {
@ -354,7 +354,7 @@ function UhrRendererV2Delegate(layout) {
} }
} }
} }
UhrRendererV2Delegate.prototype.parse = function() { _UhrRendererV2Delegate.prototype.parse = function() {
var letters = []; var letters = [];
for (var i = 0; i < this.layout.letters.length; i++) { for (var i = 0; i < this.layout.letters.length; i++) {
var line = []; var line = [];