Merge pull request #6268 from acburdine/issue-6267

Fix autoscoping of _this in settings/navigation
This commit is contained in:
Kevin Ansfield 2015-12-28 09:25:52 +00:00
commit 000d3a100f

View File

@ -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());
});
}
});