initialize wbo records' uri property correctly

This commit is contained in:
Dan Mills 2009-01-27 15:12:35 -08:00
parent a3d9640e3c
commit c5ae81c609

View File

@ -55,10 +55,11 @@ WBORecord.prototype = {
_logName: "Record.WBO",
_WBORec_init: function WBORec_init(uri) {
this.baseUri = (typeof(uri) == "string")? Utils.makeURI(uri) : uri;
this.data = {
payload: {}
};
if (uri)
this.uri = uri;
},
get id() { return decodeURI(this.data.id); },