tag:blogger.com,1999:blog-5620128670216603593.post7487408031980761323..comments2023-10-14T09:22:54.637+02:00Comments on The Maps and Geo Blog: Entering the “home stretch” for GNOME 3.28Marcus Lundbladhttp://www.blogger.com/profile/02923955229568787222noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5620128670216603593.post-7787781839335496502018-02-09T09:47:41.495+01:002018-02-09T09:47:41.495+01:00Thanks!
It makes the code quite a lot prettier and...Thanks!<br />It makes the code quite a lot prettier and easier to read. I also forgot to mention the :: operator for ES7.<br />We have quite a lot of places doing something like:<br /><br />widget.connect('pressed', this._onButtonClicked.bind(this));<br /><br />this should become:<br /><br />widget.connect('pressed', ::this._onButtonClicked);<br /><br />if I understood it correctly…<br />Currently it would have been possible to use:<br />widget.connect('pressed', () => this._onButtonClicked());<br /><br />but it didn't quite seem worth it compared to just binding the old way in these cases.Marcus Lundbladhttps://www.blogger.com/profile/02923955229568787222noreply@blogger.comtag:blogger.com,1999:blog-5620128670216603593.post-33901315306621015992018-02-09T09:17:08.528+01:002018-02-09T09:17:08.528+01:00Nice summary of the JS changes!Nice summary of the JS changes!Philip Chimentohttps://www.blogger.com/profile/16545910914624009114noreply@blogger.com