Files
cartodb/lib/assets/test/spec/fixtures/builder/node-model.fixture.js
2020-06-15 10:58:47 +08: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;