Fix variable leaks

This commit is contained in:
sapics 2015-10-23 09:42:58 +09:00
parent 5be9e1dde5
commit 502558a321
2 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -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++) {