Avoid accidental global leakage.

This commit is contained in:
Jürg Lehni 2013-02-08 16:12:57 -08:00
parent 75adbd0adc
commit 02ca95eb46
3 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@
* test. It is returned by {@link Item#hitTest(point)} and
* {@link Project#hitTest(point)}.
*/
HitResult = Base.extend(/** @lends HitResult# */{
var HitResult = this.HitResult = Base.extend(/** @lends HitResult# */{
initialize: function(type, item, values) {
this.type = type;
this.item = item;

View file

@ -602,7 +602,7 @@ statics: {
// same quadratic roots.
var a = 3 * (v1 - v2) - v0 + v3,
b = 2 * (v0 + v2) - 4 * v1,
c = v1 - v0;
c = v1 - v0,
count = Numerical.solveQuadratic(a, b, c, roots,
/*#=*/ Numerical.TOLERANCE),
// Add some tolerance for good roots, as t = 0 / 1 are added

View file

@ -26,7 +26,7 @@
* {@link PathItem#getIntersections(path)},
* etc.
*/
CurveLocation = Base.extend(/** @lends CurveLocation# */{
var CurveLocation = this.CurveLocation = Base.extend(/** @lends CurveLocation# */{
// DOCS: CurveLocation class description: add these back when the mentioned
// functioned have been added: {@link Path#split(location)}
/**