diff --git a/demo/card.html b/demo/card.html
index 8eba571..d01c6fa 100644
--- a/demo/card.html
+++ b/demo/card.html
@@ -32,6 +32,11 @@
+
+
+
+
+
@@ -51,7 +56,8 @@
author: {
first: "David",
last: "Mulder "+ id
- }
+ },
+ isAdmin: (Math.random() > 0.9 ? true : undefined)
});
}
@@ -70,6 +76,7 @@
});
},
set: function(id, property, value){
+ console.info("a save was triggered");
var item = myData.find(function(item){
return item.id == id;
});
diff --git a/paper-datatable-column.html b/paper-datatable-column.html
index c9a4e7c..44d8753 100644
--- a/paper-datatable-column.html
+++ b/paper-datatable-column.html
@@ -58,7 +58,7 @@
console.log(this.config);
},
createCellInstance: function(model, notificationId, notificationProp){
- if(typeof model[this.property] == "undefined" && this.default){
+ if(typeof model[this.property] == "undefined" && typeof this.default !== "undefined"){
var instance = this.stamp({item: model, value: this.default, _dataId: notificationId});
}else{
var instance = this.stamp({item: model, value: model[this.property], _dataId: notificationId});
diff --git a/paper-datatable.html b/paper-datatable.html
index 281ec41..6ac5671 100644
--- a/paper-datatable.html
+++ b/paper-datatable.html
@@ -283,9 +283,6 @@
}
if(cell.instance){
var instancePath = ["item", path.join(".")].join(".");
- console.info(cell, "column", instancePath, "to", change.value);
- console.info(cell.instance);
- console.log(JSON.stringify(cell.instance.__data__));
cell.instance.notifyPath(instancePath, change.value, true);
}