Skip to content

Commit 02ca95e

Browse files
committed
Avoid accidental global leakage.
1 parent 75adbd0 commit 02ca95e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/item/HitResult.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* test. It is returned by {@link Item#hitTest(point)} and
1818
* {@link Project#hitTest(point)}.
1919
*/
20-
HitResult = Base.extend(/** @lends HitResult# */{
20+
var HitResult = this.HitResult = Base.extend(/** @lends HitResult# */{
2121
initialize: function(type, item, values) {
2222
this.type = type;
2323
this.item = item;

src/path/Curve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ statics: {
602602
// same quadratic roots.
603603
var a = 3 * (v1 - v2) - v0 + v3,
604604
b = 2 * (v0 + v2) - 4 * v1,
605-
c = v1 - v0;
605+
c = v1 - v0,
606606
count = Numerical.solveQuadratic(a, b, c, roots,
607607
/*#=*/ Numerical.TOLERANCE),
608608
// Add some tolerance for good roots, as t = 0 / 1 are added

src/path/CurveLocation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* {@link PathItem#getIntersections(path)},
2727
* etc.
2828
*/
29-
CurveLocation = Base.extend(/** @lends CurveLocation# */{
29+
var CurveLocation = this.CurveLocation = Base.extend(/** @lends CurveLocation# */{
3030
// DOCS: CurveLocation class description: add these back when the mentioned
3131
// functioned have been added: {@link Path#split(location)}
3232
/**

0 commit comments

Comments
 (0)