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:
@ -125,7 +125,7 @@ const BaseAppView = new Lang.Class({
|
||||
},
|
||||
|
||||
loadGrid: function() {
|
||||
this._allItems.sort(this._compareItems);
|
||||
this._allItems.sort(Lang.bind(this, this._compareItems));
|
||||
|
||||
for (let i = 0; i < this._allItems.length; i++) {
|
||||
let id = this._getItemId(this._allItems[i]);
|
||||
|
Reference in New Issue
Block a user