Minor fixes

This commit is contained in:
Borys Levytskyi
2015-04-03 12:08:07 +03:00
parent 51ad680236
commit a2c6b5bcd8
2 changed files with 2 additions and 3 deletions

View File

@@ -25,8 +25,7 @@
if(vw.childNodes.length == 0) {
vw.appendChild(htmlElement);
}
else
{
else {
vw.insertBefore(htmlElement, vw.childNodes[0]);
}
}

View File

@@ -31,7 +31,7 @@
Container.prototype.resolveProperties = function (instance) {
for(var property in instance) {
if(property[0] == '$') {
if(property[0] == '$' && instance[property] == null) {
var name = property.substr(1, property.length - 1);
instance[property] = this.resolve(name);