Skip to content

Commit

Permalink
Implement workaround for Closure Compiler #2559 suggested by @blickly
Browse files Browse the repository at this point in the history
  • Loading branch information
kranich committed Jul 8, 2017
1 parent f409583 commit 2893993
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
19 changes: 15 additions & 4 deletions src/js/API.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/* beautify preserve:start */
import { ComplexCurves, ComplexCurvesFromEquation, ComplexCurvesFromFile, ComplexCurvesFromPolynomial } from './ComplexCurves';
import { PolynomialParser } from './PolynomialParser';
/* beautify preserve:end */
import './ComplexCurves';
import './PolynomialParser';

import {
ComplexCurves,
ComplexCurvesFromEquation,
ComplexCurvesFromFile,
ComplexCurvesFromPolynomial
}
from './ComplexCurves';

import {
PolynomialParser
}
from './PolynomialParser';

window['ComplexCurves'] = ComplexCurves;
ComplexCurves['fromEquation'] = ComplexCurvesFromEquation;
Expand Down
9 changes: 6 additions & 3 deletions src/js/ComplexCurves.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* beautify preserve:start */
import { PolynomialParser } from './PolynomialParser';
/* beautify preserve:end */
import './PolynomialParser';

import {
PolynomialParser
}
from './PolynomialParser';

var defaultLat = 5 / 12 * Math.PI;
var defaultLon = Math.PI / 6;
Expand Down

0 comments on commit 2893993

Please sign in to comment.