Properties from suggest widget don't have expected types sp use default

This commit is contained in:
Shardul Deo 2012-11-19 12:42:02 +08:00
parent 6e50347c77
commit 7de8773132

View File

@ -146,13 +146,12 @@ ExtendDataPreviewDialog.prototype._show = function(properties) {
} }
this._elmts.addPropertyInput.suggestP(suggestConfig).bind("fb-select", function(evt, data) { this._elmts.addPropertyInput.suggestP(suggestConfig).bind("fb-select", function(evt, data) {
var expected = data.expected_type;
self._addProperty({ self._addProperty({
id : data.id, id : data.id,
name: data.name, name: data.name,
expected: { expected: {
id: expected.id, id: "/type/object",
name: expected.name name: "Object"
} }
}); });
}); });