From 3e7806ae50dfdcdd0d988e0a93d11df7e91b5583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 26 May 2011 11:38:26 +0100 Subject: [PATCH] Move #_countSelectedSegment(). --- src/path/Path.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/path/Path.js b/src/path/Path.js index 72b5a49b..bf6492dd 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -268,6 +268,13 @@ var Path = this.Path = PathItem.extend({ return segs; }, + _countSelectedSegment: function(segment) { + var count = this._selectedSegmentCount += + segment._selectionState ? 1 : -1; + if (count <= 1) + this._project._selectItem(this, count == 1); + }, + // PORT: Add support for adding multiple segments at once to Sg /** * Adds one or more segments to the end of the segment list of this path. @@ -402,13 +409,6 @@ var Path = this.Path = PathItem.extend({ ? SelectionState.POINT : 0; }, - _countSelectedSegment: function(segment) { - var count = this._selectedSegmentCount += - segment._selectionState ? 1 : -1; - if (count <= 1) - this._project._selectItem(this, count == 1); - }, - /** * Specifies whether all segments of the path are selected. *