renamed the helper renderer to _..., as per private naming convention
This commit is contained in:
parent
8234d4f3ea
commit
57556987ac
1 changed files with 3 additions and 3 deletions
6
uhr.js
6
uhr.js
|
@ -292,7 +292,7 @@ UhrRenderer.prototype.render = function(uhr, beforeshow) {
|
|||
if (this.layout.version !== undefined) {
|
||||
switch (this.layout.version) {
|
||||
case 2:
|
||||
var delegate = new UhrRendererV2Delegate(this.layout);
|
||||
var delegate = new _UhrRendererV2Delegate(this.layout);
|
||||
letters = delegate.parse();
|
||||
break;
|
||||
default:
|
||||
|
@ -320,7 +320,7 @@ UhrRenderer.prototype.render = function(uhr, beforeshow) {
|
|||
});
|
||||
};
|
||||
|
||||
function UhrRendererV2Delegate(layout) {
|
||||
function _UhrRendererV2Delegate(layout) {
|
||||
this.layout = layout;
|
||||
this._parseArrayOrObject = function(letters, styleClass, input) {
|
||||
if (Array.isArray(input)) {
|
||||
|
@ -354,7 +354,7 @@ function UhrRendererV2Delegate(layout) {
|
|||
}
|
||||
}
|
||||
}
|
||||
UhrRendererV2Delegate.prototype.parse = function() {
|
||||
_UhrRendererV2Delegate.prototype.parse = function() {
|
||||
var letters = [];
|
||||
for (var i = 0; i < this.layout.letters.length; i++) {
|
||||
var line = [];
|
||||
|
|
Loading…
Reference in a new issue