mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -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,
|
||||
// If overlapping is set, we also perform the inside check:
|
||||
bounds = overlapping || inside,
|
||||
rect = bounds && Rectangle.read([bounds]);
|
||||
rect = bounds && Rectangle.read([bounds]);
|
||||
param = {
|
||||
items: [], // The list to contain the results.
|
||||
inside: !!inside,
|
||||
|
@ -3945,7 +3945,7 @@ var Item = Base.extend(Emitter, /** @lends Item# */{
|
|||
if (this._drawSelected)
|
||||
this._drawSelected(ctx, mx, selectedItems);
|
||||
if (this._boundsSelected) {
|
||||
var half = size / 2;
|
||||
var half = size / 2,
|
||||
coords = mx._transformCorners(this.getInternalBounds());
|
||||
// Now draw a rectangle that connects the transformed
|
||||
// bounds corners, and draw the corners.
|
||||
|
|
|
@ -578,7 +578,7 @@ var Color = Base.extend(new function() {
|
|||
? 'gray'
|
||||
: 'rgb';
|
||||
// Convert to array and parse in one loop, for efficiency
|
||||
var properties = types[type];
|
||||
var properties = types[type],
|
||||
parsers = componentParsers[type];
|
||||
this._components = components = [];
|
||||
for (var i = 0, l = properties.length; i < l; i++) {
|
||||
|
|
Loading…
Reference in a new issue