Fix accidental leaking of variables to the global scope.

Found using jscritic.com
This commit is contained in:
Jonathan Puckey 2014-03-28 13:46:51 +01:00
parent 8c45786759
commit 01dbfe705c
6 changed files with 8 additions and 9 deletions
src/project

View file

@ -444,7 +444,7 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
for (var id in this._selectedItems) {
var item = this._selectedItems[id],
globalMatrix = item._globalMatrix,
size = this._scope.settings.handleSize;
size = this._scope.settings.handleSize,
half = size / 2;
if (item._updateVersion === this._updateVersion
&& (item._drawSelected || item._boundsSelected)