Turn code.js into a singleton

Authored by broulik on Feb 15 2018, 12:39 PM.

Description

Turn code.js into a singleton

Otherwise we would create an instance of this JS file for every delegate.
The only contextual object it uses is i18n, so pass that in for the function call.

Differential Revision: https://phabricator.kde.org/D10507

Details

Committed
broulikFeb 15 2018, 12:39 PM
Differential Revision
D10507: Turn code.js into a singleton
Parents
R119:0ead1a6e77e8: [Task Manager] Don't delay audio indicator when task appears
Branches
Unknown
Tags
Unknown