Comparing version 3.0.4 to 3.0.5
@@ -38,3 +38,3 @@ (function (document) { | ||
// Render new view. | ||
var view = this.render(template); | ||
var view = this._render(template); | ||
@@ -74,3 +74,3 @@ // Set view hierarchy. | ||
// Render new view. | ||
var view = this.render(template); | ||
var view = this._render(template); | ||
@@ -102,2 +102,9 @@ // Set view hierarchy. | ||
Monkberry.prototype.render = function (name, values, noCache) { | ||
return this._render(name, values, noCache); | ||
}; | ||
/** | ||
* This method is used only for private rendering of views. | ||
*/ | ||
Monkberry.prototype._render = function (name, values, noCache) { | ||
noCache = noCache || false; | ||
@@ -177,2 +184,3 @@ | ||
this.onRender = null; // Function to call on render. | ||
this.onRemove = null; // Function to call on remove. | ||
} | ||
@@ -179,0 +187,0 @@ |
{ | ||
"name": "monkberry", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "JavaScript DOM Template Engine", | ||
@@ -5,0 +5,0 @@ "bin": "bin/monkberry", |
75779
1664