Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/datasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -2328,7 +2328,7 @@ DataSource.prototype.copyModel = function copyModel(Master) {
util.inherits(Slave, Master);

// Delegating static properties
Slave.__proto__ = Master;
Object.setPrototypeOf(Slave, Master);

hiddenProperty(Slave, 'dataSource', dataSource);
hiddenProperty(Slave, 'modelName', className);
Expand Down
2 changes: 1 addition & 1 deletion lib/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function List(items, itemType, parent) {
}

const arr = [];
arr.__proto__ = List.prototype;
Object.setPrototypeOf(arr, List.prototype);

items = items || [];
if (!Array.isArray(items)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/model-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ ModelBuilder.prototype.copyModel = function copyModel(Master) {

util.inherits(Slave, Master);

Slave.__proto__ = Master;
Object.setPrototypeOf(Slave, Master);

hiddenProperty(Slave, 'modelBuilder', modelBuilder);
hiddenProperty(Slave, 'modelName', className);
Expand Down
Loading