1,007
edits
Line 2: | Line 2: | ||
== Writing a Record class == | == Writing a Record class == | ||
<pre> | |||
function FooRecord(uri) { | |||
this._FooRecord_init(uri); | |||
} | |||
FooRecord.prototype = { | |||
__proto__: CryptoWrapper.prototype, | |||
_logname: "Record.Foo", | |||
_FooRecord_init: function FooItem_init(uri) { | |||
this._CryptoWrap_init(uri); | |||
this.cleartext = {}; | |||
}, | |||
get bar() this.cleartext.bar, | |||
set bar(value) { | |||
this.cleartext.bar = value; | |||
} | |||
}; | |||
</pre> | |||
== Writing a Store class == | == Writing a Store class == |
edits