Skip to content

Conversation

@tbouffard
Copy link
Member

Summary

Remove unused static properties

  • mxForceIncludes: it was used to force loading the JavaScript files in development mode in mxGraph. We are not
    managing development mode in that way anymore.
  • mxLoadResource: not used anymore
  • mxLoadStylesheets: not used anymore
  • mxResourceExtension: it was only used in Translations, so only keep the Translations settings

Move and rename the link function. It is not a general function, so move it as domUtils#addLinkToHead

Fix documentation of static properties

Other info

In the future, I suggest we move all languages related properties from Client to Translations. This is the place where they belong and this will improve tree-shaking for people that don't rely on the Translations features.

@tbouffard tbouffard requested review from junsikshim and mcyph June 16, 2022 08:21
Remove unused static properties
  - mxForceIncludes: it was used to force loading the JavaScript files in development mode in mxGraph. We are not
  managing development mode in that way anymore.
  - mxLoadResource: not used anymore
  - mxLoadStylesheets: not used anymore
  - mxResourceExtension: it was only used in Translations, so only keep the Translations settings

Move and rename the link function. It is not a general function, so move it as `domUtils#addLinkToHead`

Fix documentation of static properties
@tbouffard tbouffard force-pushed the refactor/clean_Client branch from b111272 to 2c3b888 Compare July 5, 2022 07:26
Copy link
Collaborator

@junsikshim junsikshim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice to see that Client cleaned up. It was quite a mess.

Just FYI, I recently moved to a new company, and have been spending much time adjusting to a new environment. I'll try to contribute as soon as possible. Thanks!

@tbouffard tbouffard merged commit 311514d into development Jul 16, 2022
@tbouffard tbouffard deleted the refactor/clean_Client branch July 16, 2022 05:15
@tbouffard tbouffard added the refactor Code refactoring label Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants