mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Fix variable leaks
This commit is contained in:
parent
5be9e1dde5
commit
502558a321
2 changed files with 3 additions and 3 deletions
|
@ -1941,7 +1941,7 @@ var Item = Base.extend(Emitter, /** @lends Item# */{
|
||||||
inside = match.inside,
|
inside = match.inside,
|
||||||
// If overlapping is set, we also perform the inside check:
|
// If overlapping is set, we also perform the inside check:
|
||||||
bounds = overlapping || inside,
|
bounds = overlapping || inside,
|
||||||
rect = bounds && Rectangle.read([bounds]);
|
rect = bounds && Rectangle.read([bounds]);
|
||||||
param = {
|
param = {
|
||||||
items: [], // The list to contain the results.
|
items: [], // The list to contain the results.
|
||||||
inside: !!inside,
|
inside: !!inside,
|
||||||
|
@ -3945,7 +3945,7 @@ var Item = Base.extend(Emitter, /** @lends Item# */{
|
||||||
if (this._drawSelected)
|
if (this._drawSelected)
|
||||||
this._drawSelected(ctx, mx, selectedItems);
|
this._drawSelected(ctx, mx, selectedItems);
|
||||||
if (this._boundsSelected) {
|
if (this._boundsSelected) {
|
||||||
var half = size / 2;
|
var half = size / 2,
|
||||||
coords = mx._transformCorners(this.getInternalBounds());
|
coords = mx._transformCorners(this.getInternalBounds());
|
||||||
// Now draw a rectangle that connects the transformed
|
// Now draw a rectangle that connects the transformed
|
||||||
// bounds corners, and draw the corners.
|
// bounds corners, and draw the corners.
|
||||||
|
|
|
@ -578,7 +578,7 @@ var Color = Base.extend(new function() {
|
||||||
? 'gray'
|
? 'gray'
|
||||||
: 'rgb';
|
: 'rgb';
|
||||||
// Convert to array and parse in one loop, for efficiency
|
// Convert to array and parse in one loop, for efficiency
|
||||||
var properties = types[type];
|
var properties = types[type],
|
||||||
parsers = componentParsers[type];
|
parsers = componentParsers[type];
|
||||||
this._components = components = [];
|
this._components = components = [];
|
||||||
for (var i = 0, l = properties.length; i < l; i++) {
|
for (var i = 0, l = properties.length; i < l; i++) {
|
||||||
|
|
Loading…
Reference in a new issue