Skip to content

Commit 66e7981

Browse files
committed
fix: revert aliases which creates incompatibilities with visualizer-helper
1 parent dd0dfa3 commit 66e7981

6 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/init.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ require.config({
5757
sprintf: 'components/sprintf/dist/sprintf.min',
5858
superagent: 'browserified/superagent/index',
5959
threejs: 'components/threejs/build/three.min',
60-
twig: 'browserified/twig/twig',
61-
twig_extended: 'lib/twigjs/twig',
6260
uri: 'components/uri.js/src',
6361
'web-animations': 'components/web-animations-js/web-animations.min',
6462
x2js: 'components/x2js/xml2json.min',

src/lib/twigjs/twig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
define([
4-
'twig',
4+
'browserified/twig/twig',
55
'src/util/typerenderer',
66
'src/util/util',
77
], function(Twig, Renderer, Util) {

src/modules/types/display/template-twig/view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
define([
44
'jquery',
55
'modules/default/defaultview',
6-
'twig_extended',
6+
'lib/twigjs/twig',
77
'src/util/debug',
88
'src/util/api',
99
'lodash',

src/modules/types/science/chemistry/periodic_table/view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
define([
44
'modules/default/defaultview',
5-
'twig_extended',
5+
'lib/twigjs/twig',
66
'src/util/debug',
77
'src/util/colorbar',
88
'src/util/color',

src/src/util/twig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
define(['twig_extended', 'src/util/ui', 'src/util/Form'], function (
3+
define(['lib/twigjs/twig', 'src/util/ui', 'src/util/Form'], function (
44
Twig,
55
UI,
66
Form,

src/src/util/typerenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ define([
443443

444444
functions.object = {};
445445
functions.object.init = async function () {
446-
functions.object.twig = await asyncRequire('twig_extended');
446+
functions.object.twig = await asyncRequire('lib/twigjs/twig');
447447
};
448448
functions.object.toscreen = function ($element, value, root, options = {}) {
449449
const { twig, twigVariableName, toJSON } = options;

0 commit comments

Comments
 (0)