Joeri de Gooijer pushed to branch bugfix/cm-overlay-CHANNELMGR-1124 at cms-community / hippo-addon-channel-manager
Commits: 604597d5 by Joeri de Gooijer at 2017-01-24T15:15:17+01:00 CHANNELMGR-1124 Simplify replacing container array - - - - - 1 changed file: - frontend-ng/src/angularjs/channel/hippoIframe/dragDrop/dragDrop.service.js Changes: ===================================== frontend-ng/src/angularjs/channel/hippoIframe/dragDrop/dragDrop.service.js ===================================== --- a/frontend-ng/src/angularjs/channel/hippoIframe/dragDrop/dragDrop.service.js +++ b/frontend-ng/src/angularjs/channel/hippoIframe/dragDrop/dragDrop.service.js @@ -50,8 +50,7 @@ class DragDropService { _sync() { if (this.drake) { - const containerBoxElements = this._getContainerBoxElements(); - this.drake.containers.splice(0, this.drake.containers.length, ...containerBoxElements); + this.drake.containers = this._getContainerBoxElements(); } } View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/604597d5ec51fbc9ecd89c1d2d944b05589cf23a
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn