Skip to content

calendar@cinnamon.org: replace deprecated Lang.bind() with arrow functions #13840

Description

@sporteka2

The built-in calendar applet (calendar@cinnamon.org) uses Lang.bind() extensively, which is deprecated in Cinnamon 6.x in favor of arrow functions or Function.prototype.bind().

Found 32 occurrences across:

  • applet.js: Lang.bind(this, ... and Lang.bind(this.menu, ...)
  • calendar.js: Lang.bind(this, ... in scroll events, button callbacks, settings handlers
  • eventView.js: Lang.bind(this, ... throughout

This was flagged by the cinnamon-spices-applets best-practices scanner on a PR that forks this applet (linuxmint/cinnamon-spices-applets#8847). Rather than fixing it only in the fork, it should be cleaned up in the upstream first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions