cartodb-4.42/lib/assets/test/spec/fixtures/builder/node-model.fixture.js
2024-04-06 05:25:13 +00:00

17 lines
412 B
JavaScript

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;