Bind "this" for various methods
For extremely silly reasons with how the class framework works, the wrapper method requires "this" to be bound in order for it to work, or else we'll emit errors in strict mode. https://bugzilla.gnome.org/show_bug.cgi?id=707892
This commit is contained in:
@ -244,7 +244,7 @@ const NMConnectionSection = new Lang.Class({
|
||||
this.emit('activation-failed', reason);
|
||||
}));
|
||||
|
||||
let pos = Util.insertSorted(this._connections, connection, this._connectionSortFunction);
|
||||
let pos = Util.insertSorted(this._connections, connection, Lang.bind(this, this._connectionSortFunction));
|
||||
this._labelSection.addMenuItem(item.labelItem, pos);
|
||||
this._switchSection.addMenuItem(item.switchItem, pos);
|
||||
this._connectionItems.set(connection.get_uuid(), item);
|
||||
|
Reference in New Issue
Block a user