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.
The built-in calendar applet (
calendar@cinnamon.org) usesLang.bind()extensively, which is deprecated in Cinnamon 6.x in favor of arrow functions orFunction.prototype.bind().Found 32 occurrences across:
applet.js:Lang.bind(this, ...andLang.bind(this.menu, ...)calendar.js:Lang.bind(this, ...in scroll events, button callbacks, settings handlerseventView.js:Lang.bind(this, ...throughoutThis 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.