Skip to content

Commit

Permalink
Replace Object.assign with core/utils/extend
Browse files Browse the repository at this point in the history
  • Loading branch information
San4es committed Oct 6, 2020
1 parent 3db95fd commit af6f568
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/ui/diagram/diagram.items_option.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ItemsOption extends Component {

_dataSourceChangedHandler(newItems, e) {
this._resetCache();
this._items = newItems.map(item => Object.assign({}, item));
this._items = newItems.map(item => extend({}, item));
this._dataSourceItems = newItems.slice();

if(e && e.changes) {
Expand Down
2 changes: 1 addition & 1 deletion js/ui/scheduler/ui.scheduler.resource_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ export default class ResourceManager {
const currentResourcesData = [];

resourceData.forEach(
data => currentResourcesData.push(Object.assign({}, data))
data => currentResourcesData.push(extend({}, data))
);

each(groups, (_, value) => {
Expand Down
2 changes: 1 addition & 1 deletion js/ui/scheduler/workspaces/ui.scheduler.work_space.js
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ class SchedulerWorkSpace extends WidgetObserver {

if(this.isVirtualScrolling()) {
const virtualScrollingState = this.virtualScrollingDispatcher.getState();
Object.assign(options, {
extend(options, {
topVirtualRowHeight: virtualScrollingState.topVirtualRowHeight,
bottomVirtualRowHeight: virtualScrollingState.bottomVirtualRowHeight,
startRowIndex: virtualScrollingState.startIndex,
Expand Down

0 comments on commit af6f568

Please sign in to comment.