diff --git a/src/item/Item.js b/src/item/Item.js index 2f9d2dde..2324e4a7 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -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. diff --git a/src/style/Color.js b/src/style/Color.js index 07d9966d..23af4581 100644 --- a/src/style/Color.js +++ b/src/style/Color.js @@ -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++) {