diff options
author | Marcus Lundblad <ml@update.uu.se> | 2017-11-10 23:45:20 +0100 |
---|---|---|
committer | Marcus Lundblad <ml@update.uu.se> | 2018-02-05 22:10:13 +0100 |
commit | 173ae448f43976e8e0da7ece43500b48615c61fc (patch) | |
tree | 5aa7caefc7571c7ad7f8cb70c7491d4803e4d0a3 /src/osmTypeSearchEntry.js | |
parent | f035483c2b148a71971adb9ed1f8fd0a45361dc8 (diff) | |
download | gnome-maps-173ae448f43976e8e0da7ece43500b48615c61fc.tar.gz |
Use ES6 arrow notation
Use the arrow notation to bind "this"
to anonymous functions.
https://bugzilla.gnome.org/show_bug.cgi?id=722758
Diffstat (limited to 'src/osmTypeSearchEntry.js')
-rw-r--r-- | src/osmTypeSearchEntry.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmTypeSearchEntry.js b/src/osmTypeSearchEntry.js index d9b9eeb0..af6a1c3d 100644 --- a/src/osmTypeSearchEntry.js +++ b/src/osmTypeSearchEntry.js @@ -39,11 +39,11 @@ var OSMTypeSearchEntry = new Lang.Class({ this._popover = new OSMTypePopover.OSMTypePopover({relative_to: this}); - this.connect('size-allocate', (function(widget, allocation) { + this.connect('size-allocate', (widget, allocation) => { /* Magic number to make the alignment pixel perfect. */ let width_request = allocation.width + 20; this._popover.width_request = width_request; - }).bind(this)); + }); this.connect('search-changed', this._onSearchChanged.bind(this)); this.connect('activate', this._onSearchChanged.bind(this)); |