Fix randomizeIds() to also add a nonce to the current document if not present

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1972 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2011-02-03 06:45:01 +00:00
parent 67384a5a71
commit 09ab8a85fe
2 changed files with 19 additions and 5 deletions

View File

@@ -6360,9 +6360,9 @@ this.getSvgString = function() {
//
this.randomizeIds = function() {
if (arguments.length > 0 && arguments[0] == false) {
svgedit.draw.randomizeIds(false);
svgedit.draw.randomizeIds(false, getCurrentDrawing());
} else {
svgedit.draw.randomizeIds(true);
svgedit.draw.randomizeIds(true, getCurrentDrawing());
}
};