mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Merge pull request #6268 from acburdine/issue-6267
Fix autoscoping of _this in settings/navigation
This commit is contained in:
commit
000d3a100f
1 changed files with 3 additions and 1 deletions
|
@ -9,6 +9,8 @@ export default Component.extend({
|
|||
didInsertElement() {
|
||||
let navContainer = this.$('.js-gh-blognav');
|
||||
let navElements = '.gh-blognav-item:not(.gh-blognav-item:last-child)';
|
||||
// needed because jqueryui sortable doesn't trigger babel's autoscoping
|
||||
let _this = this;
|
||||
|
||||
this._super(...arguments);
|
||||
|
||||
|
@ -24,7 +26,7 @@ export default Component.extend({
|
|||
|
||||
update(event, ui) {
|
||||
run(() => {
|
||||
this.sendAction('moveItem', ui.item.data('start-index'), ui.item.index());
|
||||
_this.sendAction('moveItem', ui.item.data('start-index'), ui.item.index());
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue