gnome-shell/js/ui
Florian Müllner 3b1330880f cleanup: Use Function.prototype.bind()
When not using arrow notation with anonymous functions, we use Lang.bind()
to bind `this` to named callbacks. However since ES5, this functionality
is already provided by Function.prototype.bind() - in fact, Lang.bind()
itself uses it when no extra arguments are specified. Just use the built-in
function directly where possible, and use arrow notation in the few places
where we pass additional arguments.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/23
2018-02-21 13:55:02 +00:00
..
components cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
status cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
accessDialog.js cleanup: Use method syntax 2018-02-21 13:54:58 +00:00
altTab.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
animation.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
appDisplay.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
appFavorites.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
audioDeviceSelection.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
background.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
backgroundMenu.js cleanup: Use arrow notation for anonymous functions 2018-02-21 13:55:00 +00:00
boxpointer.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
calendar.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
checkBox.js cleanup: Use method syntax 2018-02-21 13:54:58 +00:00
closeDialog.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
ctrlAltTab.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
dash.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
dateMenu.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
dialog.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
dnd.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
edgeDragAction.js cleanup: Use arrow notation for anonymous functions 2018-02-21 13:55:00 +00:00
endSessionDialog.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
environment.js cleanup: Use arrow notation for anonymous functions 2018-02-21 13:55:00 +00:00
extensionDownloader.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
extensionSystem.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
focusCaretTracker.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
grabHelper.js cleanup: Use arrow notation for anonymous functions 2018-02-21 13:55:00 +00:00
ibusCandidatePopup.js cleanup: Use arrow notation for anonymous functions 2018-02-21 13:55:00 +00:00
iconGrid.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
inhibitShortcutsDialog.js cleanup: Use method syntax 2018-02-21 13:54:58 +00:00
kbdA11yDialog.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
keyboard.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
layout.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
lightbox.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
lookingGlass.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
magnifier.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
magnifierDBus.js cleanup: Use arrow notation for anonymous functions 2018-02-21 13:55:00 +00:00
main.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
messageList.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
messageTray.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
modalDialog.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
mpris.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
notificationDaemon.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
osdMonitorLabeler.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
osdWindow.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
overview.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
overviewControls.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
padOsd.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
panel.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
panelMenu.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
pointerWatcher.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
popupMenu.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
remoteMenu.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
remoteSearch.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
runDialog.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
screencast.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
screenShield.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
screenshot.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
scripting.js cleanup: Use arrow notation for anonymous functions 2018-02-21 13:55:00 +00:00
search.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
sessionMode.js cleanup: Use arrow notation for anonymous functions 2018-02-21 13:55:00 +00:00
shellDBus.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
shellEntry.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
shellMountOperation.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
slider.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
switcherPopup.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
switchMonitor.js cleanup: Use method syntax 2018-02-21 13:54:58 +00:00
tweener.js cleanup: Use arrow notation for anonymous functions 2018-02-21 13:55:00 +00:00
unlockDialog.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
userWidget.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
viewSelector.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
windowAttentionHandler.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
windowManager.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
windowMenu.js cleanup: Use arrow notation for anonymous functions 2018-02-21 13:55:00 +00:00
workspace.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
workspacesView.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
workspaceSwitcherPopup.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
workspaceThumbnail.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
xdndHandler.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00