CloudServices/Sync/FxSync/Developer/ClientAPI: Difference between revisions

Line 22: Line 22:
* <tt>services/sync/modules/type_records/history.js</tt> -- the <tt>HistoryRec</tt> record class.
* <tt>services/sync/modules/type_records/history.js</tt> -- the <tt>HistoryRec</tt> record class.


After implementing your classes, you'll have to register them with Weave; you should also add a check-box to the Weave preferences screen to let the user turn your engine on and off.  How to do these thing is explained at the end of the page.
After implementing your classes, you'll have to register them with the Sync service.


* - Javascript is prototype-based, not class-based, so technically it's not correct to talk about "subclassing" or "extending a class", but what we're doing is very much the equivalent of that, and I don't know any other terminology to explain it as clearly.
* - Javascript is prototype-based, not class-based, so technically it's not correct to talk about "subclassing" or "extending a class", but what we're doing is very much the equivalent of that, and I don't know any other terminology to explain it as clearly.
canmove, Confirmed users
725

edits