More optimization to element selection

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1713 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2010-09-10 19:17:06 +00:00
parent 6c4bc512ff
commit 85ac3dace0

View File

@@ -487,6 +487,8 @@ svgEditor.addExtension("Connector", function(S) {
}
},
selectedChanged: function(opts) {
// TODO: Find better way to skip operations if no connectors are in use
if(!$(svgcontent).find(conn_sel).length) return;
if(svgCanvas.getMode() == 'connector') {
svgCanvas.setMode('select');