Skip to content
  • Florian Müllner's avatar
    cleanup: Use Function.prototype.bind() · 3b133088
    Florian Müllner authored and Florian Müllner's avatar Florian Müllner committed
    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.
    
    GNOME/gnome-shell!23
    3b133088