cartodb-4.42/lib/assets/test/spec/fixtures/builder/node-model.fixture.js

17 lines
412 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
var nodeModel = function (tableModel, synced, syncModel) {
this.tableModel = tableModel;
if (tableModel) {
this.tableModel.isSync = function () {
return synced || false;
};
this.tableModel._syncModel = syncModel;
this.tableModel.getSyncModel = function () {
return syncModel;
};
this.tableModel.isOwner = function () { return true; };
}
};
module.exports = nodeModel;