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:
Alexis Deveria
2009-11-16 17:04:19 +00:00
parent 082523f7f7
commit e9ff3cf682
2 changed files with 16 additions and 33 deletions

View File

@@ -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);