Comparing version 3.0.6 to 3.0.7
@@ -164,3 +164,3 @@ (function (document) { | ||
Monkberry.prototype.view = function () { | ||
return new View; | ||
return new Monkberry.View; | ||
}; | ||
@@ -175,3 +175,3 @@ | ||
*/ | ||
function View() { | ||
Monkberry.View = function View() { | ||
this.name = ''; // Name of template. | ||
@@ -187,3 +187,3 @@ this.parent = null; // Parent view. | ||
View.prototype.update = function (data) { | ||
Monkberry.View.prototype.update = function (data) { | ||
var _this = this; | ||
@@ -218,3 +218,3 @@ | ||
View.prototype.appendTo = function (toNode) { | ||
Monkberry.View.prototype.appendTo = function (toNode) { | ||
for (var i = 0, len = this.nodes.length; i < len; i++) { | ||
@@ -225,3 +225,3 @@ toNode.appendChild(this.nodes[i]); | ||
View.prototype.insertBefore = function (toNode) { | ||
Monkberry.View.prototype.insertBefore = function (toNode) { | ||
for (var i = 0, len = this.nodes.length; i < len; i++) { | ||
@@ -237,3 +237,3 @@ if (toNode.parentNode) { | ||
View.prototype.dom = function (toNode) { | ||
Monkberry.View.prototype.dom = function (toNode) { | ||
if (this.nodes.length == 1) { | ||
@@ -250,3 +250,3 @@ return this.nodes[0]; | ||
View.prototype.remove = function (force) { | ||
Monkberry.View.prototype.remove = function (force) { | ||
force = force || false; | ||
@@ -278,3 +278,3 @@ // Remove appended nodes. | ||
View.prototype.getElementById = function (id) { | ||
Monkberry.View.prototype.getElementById = function (id) { | ||
for (var i = 0; i < this.nodes.length; i++) { | ||
@@ -293,3 +293,3 @@ if (this.nodes[i].id == id) { | ||
View.prototype.querySelector = function (query) { | ||
Monkberry.View.prototype.querySelector = function (query) { | ||
for (var i = 0; i < this.nodes.length; i++) { | ||
@@ -296,0 +296,0 @@ if (this.nodes[i].matches(query)) { |
{ | ||
"name": "monkberry", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "JavaScript DOM Template Engine", | ||
@@ -37,15 +37,15 @@ "bin": "bin/monkberry", | ||
"dependencies": { | ||
"commander": "^2.8.1", | ||
"monkberry-parser": "^1.0.1", | ||
"source-map": "^0.5.1" | ||
"commander": "^2.9.0", | ||
"monkberry-parser": "^1.0.2", | ||
"source-map": "^0.5.3" | ||
}, | ||
"devDependencies": { | ||
"asciitree": "^1.0.0", | ||
"babel-cli": "^6.1.18", | ||
"babel-preset-es2015": "^6.1.18", | ||
"babel-cli": "^6.2.4", | ||
"babel-preset-es2015": "^6.2.4", | ||
"doctoc": "^0.15.0", | ||
"jasmine": "^2.3.2", | ||
"testem": "^0.9.4", | ||
"testem": "^0.9.11", | ||
"through": "^2.3.8" | ||
} | ||
} |
77263
Updatedcommander@^2.9.0
Updatedmonkberry-parser@^1.0.2
Updatedsource-map@^0.5.3