Fixed issue 329, also made zoom reset on New Image. Made some code more efficient.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@947 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -1933,6 +1933,8 @@ function BatchCommand(text) {
|
||||
}
|
||||
|
||||
// make sure the elements are in the correct order
|
||||
// See: http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-compareDocumentPosition
|
||||
|
||||
selectedElements.sort(function(a,b) {
|
||||
if(a && b && a.compareDocumentPosition) {
|
||||
return 3 - (b.compareDocumentPosition(a) & 6);
|
||||
|
||||
Reference in New Issue
Block a user