Skip to content

Commit

Permalink
Refactor js/designer/move.js to use a module
Browse files Browse the repository at this point in the history
Adds DesignerMove module in js/designer/move.js to reduce the number of global variables.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed May 25, 2019
1 parent df78269 commit 0f7ddfd
Show file tree
Hide file tree
Showing 3 changed files with 295 additions and 319 deletions.
2 changes: 1 addition & 1 deletion js/designer/init.js
Expand Up @@ -34,7 +34,7 @@ AJAX.registerOnload('designer/init.js', function () {
selected_page = designer_config.displayPage;
designer_tables_enabled = designer_config.tablesEnabled;

Main();
DesignerMove.main();

if (! designer_tables_enabled) {
DesignerOfflineDB.open(function (success) {
Expand Down

0 comments on commit 0f7ddfd

Please sign in to comment.