aripollak/gnome-shell-extension-weather — comment on commit 9f4b40e5b46f6787976be9978170aa24d2fae3b0
File: src/extension.js line 624
By ferdnyc:

There's no need to create a separate element here — St.Button has a label property. So you can just use:

```javascript
this._currentWeatherLocation = new St.Button({ reactive: true, label: _('Please wait') });
```
for the previous line, and eliminate the next two. Then just assign to ```this._currentWeatherLocation.label``` on line 544, to update the text.

In addition to just being cleaner, this allows the styling for weather-current-location-link to affect both the button and text when changed. (I didn't love the way the button looks, and wanted to try hidden-hyperlink styling instead by changing the CSS to: ```.weather-current-location-link:hover { text-decoration: underline; }```. I was confused, at first, why this didn't work. And by making the label part of _currentWeatherLocation instead of a separate element, it works fine.)