Restore printing json for now...

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@121 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-06-12 12:49:18 +00:00
parent 8b0fcfe8f6
commit 8ac63bb5e6
1 changed files with 5 additions and 5 deletions

View File

@ -190,8 +190,8 @@ SVG-edit Google Wave Gadget @ <a href="http://svg-edit.googlecode.com/" target="
var k = this.id;
var v = state.get(k);
if (v) {
var ob = v;
// eval("ob=" + v); // FIXME: Yes, I'm using eval... Dirty, dirty..
var ob;
eval("ob=" + v); // FIXME: Yes, I'm using eval... Dirty, dirty..
if (ob) {
svgCanvas.updateElementFromJson(ob);
} else {
@ -206,9 +206,9 @@ SVG-edit Google Wave Gadget @ <a href="http://svg-edit.googlecode.com/" target="
// New nodes
for (var k in keys) {
var ob;
var v = state.get(keys[k]);
var ob = v;
// eval("ob=" + v); // FIXME: Yes, I'm using eval... Dirty, dirty..
eval("ob=" + v); // FIXME: Yes, I'm using eval... Dirty, dirty..
if (ob) svgCanvas.updateElementFromJson(ob)
}
}
@ -223,7 +223,7 @@ SVG-edit Google Wave Gadget @ <a href="http://svg-edit.googlecode.com/" target="
}
var ob = { element: elem.nodeName, attr: attrs };
// printJson seems to have a problem not quoting keys like 'stroke-width'
delta[elem.id] = ob; //wave.util.printJson(ob, true);
delta[elem.id] = wave.util.printJson(ob, true);
wave.getState().submitDelta(delta);
}